Convert all our uses of directoy SSHHost construction over to use
hosts.create_host instead. Also, fix up a bunch of test references
that use SSHHost when they really just need to run against the
abstract RemoteHost class, and fix some tests using the MockSSHHost
class to just use the mock framework instead.
Risk: Low
Visibility: Gets rid of almost all direct references to SSHHost.
Signed-off-by: John Admanski <jadmanski@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2010 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/control_segments/verify b/server/control_segments/verify
index c2b9336..42593b0 100644
--- a/server/control_segments/verify
+++ b/server/control_segments/verify
@@ -10,7 +10,7 @@
# This needs more stuff in it. Check for diskspace, etc. But it's a start.
def verify(machine):
print 'Initializing host ' + machine
- host = hosts.SSHHost(machine, initialize=False)
+ host = hosts.create_host(machine, initialize=False)
print 'Pinging host ' + machine
sys.stdout.flush()
host.ssh_ping()