1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-07 16:59:22 +00:00

cpio: fix ptest failure

Fix following ptest failure:
/usr/lib64/cpio/ptest/run-ptest: line 7: cd: /usr/lib/cpio/ptest/tests/: No such file or directory

(From OE-Core rev: 1809329c336cb509349bd39f13cc78acd8efe0cd)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Changqing Li
2023-03-14 10:13:01 +08:00
committed by Richard Purdie
parent 607ad000c1
commit e4dc18f600
2 changed files with 2 additions and 1 deletions
@@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# Define cpio test work dir # Define cpio test work dir
WORKDIR=/usr/lib/cpio/ptest/tests/ WORKDIR=@PTEST_PATH@/tests/
# Run test # Run test
cd ${WORKDIR} cd ${WORKDIR}
+1
View File
@@ -56,6 +56,7 @@ do_install_ptest() {
install --mode=755 ${B}/tests/atlocal ${D}${PTEST_PATH}/tests/ install --mode=755 ${B}/tests/atlocal ${D}${PTEST_PATH}/tests/
install --mode=755 ${B}/tests/genfile ${D}${PTEST_PATH}/tests/ install --mode=755 ${B}/tests/genfile ${D}${PTEST_PATH}/tests/
install --mode=755 ${S}/tests/testsuite ${D}${PTEST_PATH}/tests/ install --mode=755 ${S}/tests/testsuite ${D}${PTEST_PATH}/tests/
sed -i "s#@PTEST_PATH@#${PTEST_PATH}#g" ${D}${PTEST_PATH}/run-ptest
} }
PACKAGES =+ "${PN}-rmt" PACKAGES =+ "${PN}-rmt"