aboutgitcodebugslistschat
path: root/test
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-09-23 17:55:10 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-09-23 17:55:10 +0200
commit85de88ff31969e291f7007521ab1559adb6806e3 (patch)
tree21cd47ea5a2c4e337a46948208312f09b3a1a699 /test
parentd6f865a40a2b70e8b18983fe091b4761183eaac4 (diff)
downloadpasst-85de88ff31969e291f7007521ab1559adb6806e3.tar
passt-85de88ff31969e291f7007521ab1559adb6806e3.tar.gz
passt-85de88ff31969e291f7007521ab1559adb6806e3.tar.bz2
passt-85de88ff31969e291f7007521ab1559adb6806e3.tar.lz
passt-85de88ff31969e291f7007521ab1559adb6806e3.tar.xz
passt-85de88ff31969e291f7007521ab1559adb6806e3.tar.zst
passt-85de88ff31969e291f7007521ab1559adb6806e3.zip
test/passt.mbuto: Don't fail on missing guest public key
We won't necessarily run mbuto as part of regular tests: it can also be used for demos or out-of-tree tests. To keep the profile simple, leave the whole sshd setup there, which is otherwise harmless, but don't fail if guest-key.pub is missing in the current directory. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/passt.mbuto2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/passt.mbuto b/test/passt.mbuto
index d29f456..51c9ada 100755
--- a/test/passt.mbuto
+++ b/test/passt.mbuto
@@ -68,7 +68,7 @@ EOF
ln -s /run/sshd /usr/share/empty.sshd
cat > /root/.ssh/authorized_keys <<EOF
-'"$(cat guest-key.pub)"'
+'"$(cat guest-key.pub 2>/dev/null || :)"'
EOF
chmod 600 /root/.ssh/authorized_keys
chmod 700 /root