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:
Khem Raj 2024-10-03 20:43:33 -07:00
parent 48d82c20c4
commit 8cda256948
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,3 @@
#!/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

View File

@ -20,6 +20,7 @@ SRC_URI += " \
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-unittest-automake-output \
bash \
fuse \
"
@ -27,4 +28,5 @@ RDEPENDS:${PN}-ptest += " \
do_install_ptest() {
install -d ${D}${PTEST_PATH}/test
cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
ln -sf ${bindir}/sshfs ${D}${PTEST_PATH}/sshfs
}