mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
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>
This commit is contained in:
parent
da6b309429
commit
edc8c68ab0
@ -1,3 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
trap "[ -d ~/.ssh.bak ] && rm -rf ~/.ssh && mv ~/.ssh.bak ~/.ssh || rm -rf ~/.ssh" INT EXIT
|
||||
if [ -d ~/.ssh ]; then
|
||||
mv ~/.ssh ~/ssh.bak
|
||||
fi
|
||||
|
||||
mkdir ~/.ssh
|
||||
echo "Host localhost" >> ~/.ssh/config
|
||||
echo " StrictHostKeyChecking no" >> ~/.ssh/config
|
||||
|
||||
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}}'
|
||||
|
||||
@ -19,9 +19,11 @@ SRC_URI += " \
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user