diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2019-11-24 10:19:13 +0000 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2019-11-24 10:19:13 +0000 |
commit | ddd968b02589a3c6dae3723d0b6fbdec5a547abe (patch) | |
tree | f4c7c881a214a71ef99cb33f839e21c6667c61a1 /test/test_sshfs.py | |
parent | 2421675f3f851c67edbc8347e58380a190e5c2aa (diff) | |
download | sshfs-ddd968b02589a3c6dae3723d0b6fbdec5a547abe.tar sshfs-ddd968b02589a3c6dae3723d0b6fbdec5a547abe.tar.gz sshfs-ddd968b02589a3c6dae3723d0b6fbdec5a547abe.tar.bz2 sshfs-ddd968b02589a3c6dae3723d0b6fbdec5a547abe.zip |
Do not fail tests if connecting to localhost for first time.
Diffstat (limited to 'test/test_sshfs.py')
-rwxr-xr-x | test/test_sshfs.py | 3 |
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', |