forked from autotest/autotest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Martin J. Bligh <[email protected]>
- Loading branch information
Martin J. Bligh
committed
Apr 9, 2008
1 parent
232ec23
commit 7e5f76f
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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__() |