Skip to content

Commit

Permalink
sshfs-fuse: Fix ptests
Browse files Browse the repository at this point in the history
Symlink to sshfs parallel to test dir is needed
during test runs

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Oct 4, 2024
1 parent 48d82c2 commit 8cda256
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ SRC_URI += " \

RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-unittest-automake-output \
bash \
fuse \
"

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
}

0 comments on commit 8cda256

Please sign in to comment.