diff options
author | Changqing Li <changqing.li@windriver.com> | 2023-03-14 10:13:01 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-14 17:13:11 +0000 |
commit | e4dc18f600d95b8a3ecfbacda42da487dd129f1d (patch) | |
tree | b5f87e404a8170b6a939d4710774153b18fb3d33 /meta | |
parent | 607ad000c1d227fce3bb97d8ae34b718b04cfd83 (diff) | |
download | poky-e4dc18f600d95b8a3ecfbacda42da487dd129f1d.tar.gz |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-extended/cpio/cpio-2.13/run-ptest | 2 | ||||
-rw-r--r-- | meta/recipes-extended/cpio/cpio_2.13.bb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-extended/cpio/cpio-2.13/run-ptest b/meta/recipes-extended/cpio/cpio-2.13/run-ptest index bdac7259c1..f027574e86 100644 --- a/meta/recipes-extended/cpio/cpio-2.13/run-ptest +++ b/meta/recipes-extended/cpio/cpio-2.13/run-ptest | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | # Define cpio test work dir | 3 | # Define cpio test work dir |
4 | WORKDIR=/usr/lib/cpio/ptest/tests/ | 4 | WORKDIR=@PTEST_PATH@/tests/ |
5 | 5 | ||
6 | # Run test | 6 | # Run test |
7 | cd ${WORKDIR} | 7 | cd ${WORKDIR} |
diff --git a/meta/recipes-extended/cpio/cpio_2.13.bb b/meta/recipes-extended/cpio/cpio_2.13.bb index 7a3c8b308b..3350ba710e 100644 --- a/meta/recipes-extended/cpio/cpio_2.13.bb +++ b/meta/recipes-extended/cpio/cpio_2.13.bb | |||
@@ -56,6 +56,7 @@ do_install_ptest() { | |||
56 | install --mode=755 ${B}/tests/atlocal ${D}${PTEST_PATH}/tests/ | 56 | install --mode=755 ${B}/tests/atlocal ${D}${PTEST_PATH}/tests/ |
57 | install --mode=755 ${B}/tests/genfile ${D}${PTEST_PATH}/tests/ | 57 | install --mode=755 ${B}/tests/genfile ${D}${PTEST_PATH}/tests/ |
58 | install --mode=755 ${S}/tests/testsuite ${D}${PTEST_PATH}/tests/ | 58 | install --mode=755 ${S}/tests/testsuite ${D}${PTEST_PATH}/tests/ |
59 | sed -i "s#@PTEST_PATH@#${PTEST_PATH}#g" ${D}${PTEST_PATH}/run-ptest | ||
59 | } | 60 | } |
60 | 61 | ||
61 | PACKAGES =+ "${PN}-rmt" | 62 | PACKAGES =+ "${PN}-rmt" |