summaryrefslogtreecommitdiffstats
path: root/meta-agl-test/recipes-devtools
diff options
context:
space:
mode:
authorQiu Tingting <qiutt@fujitsu.com>2023-04-28 10:24:15 +0800
committerQiu Tingting <qiutt@fujitsu.com>2023-04-28 10:24:15 +0800
commited880f1f9df5ac8b4e335862d5bdfcf6cc3cc584 (patch)
treef5b47d7de9a66c91a82c951b2f65cd46ccf1213f /meta-agl-test/recipes-devtools
parent5c4224f57614b3b836b576be6d834ffa6c8e852c (diff)
e2fsprogs: fix ptest error when using usrmerge DISTRO_FEATURES
Because usrmerge DISTRO_FEATURES is uesed, in test_script and test_one of ptest scripts, SRCDIR has the wrong path. SRCDIR=/usr/usr/lib/e2fsprogs/ptest/test So we should check and modify SRCDIR in test_script and test_one. It is a backport for https://lists.openembedded.org/g/openembedded-core/message/180486 It should be deleted after yocto version up. SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: Iff23c1db2b39d9e3e924068cf6ea2c5e26b952bf
Diffstat (limited to 'meta-agl-test/recipes-devtools')
-rw-r--r--meta-agl-test/recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-agl-test/recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend b/meta-agl-test/recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend
new file mode 100644
index 00000000..2a4337dc
--- /dev/null
+++ b/meta-agl-test/recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend
@@ -0,0 +1,8 @@
+# fix bug for ptest with usrmerge.
+# Delete it after yocto version up.
+do_compile_ptest:append() {
+ sed -i 's,/usr/usr,/usr,g' \
+ ${B}/tests/test_one \
+ ${B}/tests/test_script
+
+}