From ddd968b02589a3c6dae3723d0b6fbdec5a547abe Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Sun, 24 Nov 2019 10:19:13 +0000 Subject: Do not fail tests if connecting to localhost for first time. --- test/test_sshfs.py | 3 +++ 1 file changed, 3 insertions(+) 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', -- cgit v1.2.3