Message ID | 20241004042344.999232-1-raj.khem@gmail.com |
---|---|
State | New |
Headers | show |
Series | [meta-filesystems] sshfs-fuse: Fix ptests | expand |
diff --git a/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/run-ptest b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/run-ptest index b63c4de0d9..8d2017d39c 100644 --- a/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/run-ptest +++ b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/run-ptest @@ -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 diff --git a/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.3.bb b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.3.bb index 5a926dac0c..fd5af0b026 100644 --- a/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.3.bb +++ b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.3.bb @@ -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 }
Symlink to sshfs parallel to test dir is needed during test runs Signed-off-by: Khem Raj <raj.khem@gmail.com> --- .../recipes-filesystems/sshfs-fuse/sshfs-fuse/run-ptest | 2 +- .../recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.3.bb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)