mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
sshfs-fuse: Fix ptests
Symlink to sshfs parallel to test dir is needed during test runs Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
|
pytest --automake
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ SRC_URI += " \
|
|||||||
|
|
||||||
RDEPENDS:${PN}-ptest += " \
|
RDEPENDS:${PN}-ptest += " \
|
||||||
python3-pytest \
|
python3-pytest \
|
||||||
|
python3-unittest-automake-output \
|
||||||
bash \
|
bash \
|
||||||
fuse \
|
fuse \
|
||||||
"
|
"
|
||||||
@@ -27,4 +28,5 @@ RDEPENDS:${PN}-ptest += " \
|
|||||||
do_install_ptest() {
|
do_install_ptest() {
|
||||||
install -d ${D}${PTEST_PATH}/test
|
install -d ${D}${PTEST_PATH}/test
|
||||||
cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
|
cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
|
||||||
|
ln -sf ${bindir}/sshfs ${D}${PTEST_PATH}/sshfs
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user