sshfs-fuse: Do not prompt for known_hosts during ptests

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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2024-10-05 09:35:05 -07:00
parent 44fb41b449
commit e6b228a6b2
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -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