Skip to content

Commit

Permalink
Do not fail tests if connecting to localhost for first time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikratio committed Nov 24, 2019
1 parent 2421675 commit ddd968b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_sshfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit ddd968b

Please sign in to comment.