Disable ssh/scp password authentication during tests
Ensure ssh/scp does not try password auth if key auth failed during tests Change-Id: I1f35d81199bfa21a2ec8bcafff259242e0422b9b
This commit is contained in:
parent
0947d510cd
commit
ada3d9102a
@ -251,7 +251,8 @@ class BaseGitReviewTestCase(testtools.TestCase, GerritHelpers):
|
||||
cmd_file = self._dir('ssh', cmd)
|
||||
s = '#!/bin/sh\n' \
|
||||
'/usr/bin/%s -i %s -o UserKnownHostsFile=%s ' \
|
||||
'-o IdentitiesOnly=yes $@' % \
|
||||
'-o IdentitiesOnly=yes ' \
|
||||
'-o PasswordAuthentication=no $@' % \
|
||||
(cmd,
|
||||
self._dir('gsite', 'test_ssh_key'),
|
||||
self._dir('ssh', 'known_hosts'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user