test: ssh: don't try to ask for a password

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-07-25 17:28:58 +03:00
parent 0e9774a3f8
commit 66f1777d9c
+1 -1
View File
@@ -78,7 +78,7 @@ def _should_test_ssh():
return False
try:
check_output(['ssh', '127.0.0.1', 'ls'])
check_output(['ssh', '-o', 'BatchMode=yes', '127.0.0.1', 'ls'])
except (CalledProcessError, IOError):
return False