Skip to contentSkip to conversation

sshfs-fuse: Do not prompt for known_hosts during ptests

PATCH New Khem Raj 1 participant 1 message Oct 5, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 sshfs-fuse: Do not prompt for known_hosts during ptests

ptest runs are non-interactive, therefore ignore
adding to known_hosts on localhost

---
 .../sshfs-fuse/sshfs-fuse/run-ptest                    | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/run-ptest +9 -1
index 8d2017d39c..5aab54d5b5 100644
@@ -1,3 +1,11 @@
 #!/bin/sh
-
+mkdir -p ~/.ssh
+cat > ~/.ssh/config << EOF
+Host *
+  CheckHostIP no
+  StrictHostKeyChecking no
+  UserKnownHostsFile=/dev/null
+EOF
 pytest --automake
+
+rm -rf ~/.ssh/config