aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2019-11-24 10:19:13 +0000
committerNikolaus Rath <Nikolaus@rath.org>2019-11-24 10:19:13 +0000
commitddd968b02589a3c6dae3723d0b6fbdec5a547abe (patch)
treef4c7c881a214a71ef99cb33f839e21c6667c61a1
parent2421675f3f851c67edbc8347e58380a190e5c2aa (diff)
downloadsshfs-ddd968b02589a3c6dae3723d0b6fbdec5a547abe.tar
sshfs-ddd968b02589a3c6dae3723d0b6fbdec5a547abe.tar.gz
sshfs-ddd968b02589a3c6dae3723d0b6fbdec5a547abe.tar.bz2
sshfs-ddd968b02589a3c6dae3723d0b6fbdec5a547abe.zip
Do not fail tests if connecting to localhost for first time.
-rwxr-xr-xtest/test_sshfs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_sshfs.py b/test/test_sshfs.py
index 08091bd..995ff00 100755
--- a/test/test_sshfs.py
+++ b/test/test_sshfs.py
@@ -40,6 +40,9 @@ def test_sshfs(tmpdir, debug, cache_timeout, sync_rd, capfd):
# capfd.register_output(r'^ unique: [0-9]+, error: -[0-9]+ .+$',
# count=0)
+ # Avoid false positives from storing key for localhost
+ capfd.register_output(r"^Warning: Permanently added 'localhost' .+", count=0)
+
# Test if we can ssh into localhost without password
try:
res = subprocess.call(['ssh', '-o', 'KbdInteractiveAuthentication=no',