summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2025-10-28 21:28:29 +0100
committerGyorgy Sarvari <skandigraun@gmail.com>2025-10-29 17:05:17 +0100
commitedc8c68ab09176d3e67035db39b72143e419e898 (patch)
tree8c748f4b62d29b2ba64469ef93aceda6ffc219c6
parentda6b30942948881bb1fb556518e552fe58da33fb (diff)
downloadmeta-openembedded-edc8c68ab09176d3e67035db39b72143e419e898.tar.gz
sshfs-fuse: fix ptests
Disable host key checking during tests, so the test can be executed without human intervention. Also add missing dependency. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
-rw-r--r--meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/run-ptest9
-rw-r--r--meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.3.bb2
2 files changed, 11 insertions, 0 deletions
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..b10922d02e 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,12 @@
1#!/bin/sh 1#!/bin/sh
2 2
3trap "[ -d ~/.ssh.bak ] && rm -rf ~/.ssh && mv ~/.ssh.bak ~/.ssh || rm -rf ~/.ssh" INT EXIT
4if [ -d ~/.ssh ]; then
5 mv ~/.ssh ~/ssh.bak
6fi
7
8mkdir ~/.ssh
9echo "Host localhost" >> ~/.ssh/config
10echo " StrictHostKeyChecking no" >> ~/.ssh/config
11
3pytest -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}}' 12pytest -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}}'
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 f91e682d24..bde0949992 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
@@ -19,9 +19,11 @@ SRC_URI += " \
19RDEPENDS:${PN}-ptest += " \ 19RDEPENDS:${PN}-ptest += " \
20 ${PYTHON_PN}-pytest \ 20 ${PYTHON_PN}-pytest \
21 bash \ 21 bash \
22 fuse \
22" 23"
23 24
24do_install_ptest() { 25do_install_ptest() {
25 install -d ${D}${PTEST_PATH}/test 26 install -d ${D}${PTEST_PATH}/test
26 cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ 27 cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
28 ln -sf ${bindir}/sshfs ${D}${PTEST_PATH}/sshfs
27} 29}