aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2018-02-02 15:10:34 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-02-06 10:54:42 +0000
commit4a4eff9b9e3c614ff41b17cbec359b72dcbd41bd (patch)
treedda710ced8276abd3a131a7fca563e37017291c6
parent4fed9d636852f04457e25c0f7064a4928cc8c36b (diff)
downloadopenembedded-core-4a4eff9b9e3c614ff41b17cbec359b72dcbd41bd.tar.gz
openembedded-core-4a4eff9b9e3c614ff41b17cbec359b72dcbd41bd.tar.bz2
openembedded-core-4a4eff9b9e3c614ff41b17cbec359b72dcbd41bd.zip
e2fsprogs: fix the hardcoded paths for ptest
Fix the hardcoded paths in test scripts and expect files to avoid issue like: | cat: ../e2fsck/e2fsck: No such file or directory Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb
index a53585db47..ceaf171585 100644
--- a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb
@@ -104,7 +104,9 @@ do_compile_ptest() {
do_install_ptest() {
cp -R --no-dereference --preserve=mode,links -v ${B}/tests ${D}${PTEST_PATH}/test
cp -R --no-dereference --preserve=mode,links -v ${S}/tests/* ${D}${PTEST_PATH}/test
- sed -e 's!../e2fsck/e2fsck!e2fsck!g' -i ${D}${PTEST_PATH}/test/*/expect*
+ sed -e 's!../e2fsck/e2fsck!e2fsck!g' \
+ -e 's!../misc/tune2fs!tune2fs!g' -i ${D}${PTEST_PATH}/test/*/expect*
+ sed -e 's!../e2fsck/e2fsck!${base_sbindir}/e2fsck!g' -i ${D}${PTEST_PATH}/test/*/script
# Remove various files
find "${D}${PTEST_PATH}" -type f \