Added a timeout to ssh_ping. ssh was hanging, but wasn't being killed for
an hour since the timeout was not set.
Signed-off-by: Colby Ranger <cranger@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1209 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/hosts/ssh_host.py b/server/hosts/ssh_host.py
index 110082a..c4de29e 100644
--- a/server/hosts/ssh_host.py
+++ b/server/hosts/ssh_host.py
@@ -731,7 +731,7 @@
def ssh_ping(self, timeout = 60):
- self.run('true', connect_timeout = timeout)
+ self.run('true', timeout = timeout, connect_timeout = timeout)
def get_autodir(self):