add missing files from last commit
Signed-off-by: Martin J. Bligh <mbligh@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1418 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/__init__.py b/server/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/server/__init__.py
diff --git a/server/hosts/remote.py b/server/hosts/remote.py
new file mode 100644
index 0000000..20bd923
--- /dev/null
+++ b/server/hosts/remote.py
@@ -0,0 +1,31 @@
+"""This class defines the Remote host class, mixing in the SiteHost class
+if it is available."""
+
+# site_host.py may be non-existant or empty, make sure that an appropriate
+# SiteHost class is created nevertheless
+try:
+ from site_host import SiteHost
+except ImportError:
+ class SiteHost(base_classes.Host):
+ def __init__(self):
+ super(SiteHost, self).__init__()
+
+
+class RemoteHost(SiteHost):
+ """This class represents a remote machine on which you can run
+ programs.
+
+ It may be accessed through a network, a serial line, ...
+ It is not the machine autoserv is running on.
+
+ Implementation details:
+ This is an abstract class, leaf subclasses must implement the methods
+ listed here and in parent classes which have no implementation. They
+ may reimplement methods which already have an implementation. You
+ must not instantiate this class but should instantiate one of those
+ leaf subclasses."""
+
+ hostname= None
+
+ def __init__(self):
+ super(RemoteHost, self).__init__()