Convert all python code to use four-space indents instead of eight-space tabs.
Signed-off-by: John Admanski <[email protected]>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1658 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/hosts/base_classes.py b/server/hosts/base_classes.py
index ddcfcdd..0f637bd 100644
--- a/server/hosts/base_classes.py
+++ b/server/hosts/base_classes.py
@@ -8,8 +8,8 @@
Implementation details:
You should import the "hosts" package instead of importing each type of host.
- Host: a machine on which you can run programs
- RemoteHost: a remote machine on which you can run programs
+ Host: a machine on which you can run programs
+ RemoteHost: a remote machine on which you can run programs
"""
__author__ = """
@@ -26,91 +26,91 @@
class Host(object):
- """
- This class represents a machine on which you can run programs.
+ """
+ This class represents a machine on which you can run programs.
- It may be a local machine, the one autoserv is running on, a remote
- machine or a virtual machine.
+ It may be a local machine, the one autoserv is running on, a remote
+ machine or a virtual machine.
- Implementation details:
- This is an abstract class, leaf subclasses must implement the methods
- listed here. You must not instantiate this class but should
- instantiate one of those leaf subclasses.
- """
+ Implementation details:
+ This is an abstract class, leaf subclasses must implement the methods
+ listed here. You must not instantiate this class but should
+ instantiate one of those leaf subclasses.
+ """
- bootloader = None
+ bootloader = None
- def __init__(self):
- super(Host, self).__init__()
- self.serverdir = utils.get_server_dir()
- self.bootloader= bootloader.Bootloader(self)
- self.env = {}
+ def __init__(self):
+ super(Host, self).__init__()
+ self.serverdir = utils.get_server_dir()
+ self.bootloader= bootloader.Bootloader(self)
+ self.env = {}
- def run(self, command):
- pass
+ def run(self, command):
+ pass
- def reboot(self):
- pass
+ def reboot(self):
+ pass
- def reboot_setup(self):
- pass
+ def reboot_setup(self):
+ pass
- def reboot_followup(self):
- pass
+ def reboot_followup(self):
+ pass
- def get_file(self, source, dest):
- pass
+ def get_file(self, source, dest):
+ pass
- def send_file(self, source, dest):
- pass
+ def send_file(self, source, dest):
+ pass
- def get_tmp_dir(self):
- pass
+ def get_tmp_dir(self):
+ pass
- def is_up(self):
- pass
+ def is_up(self):
+ pass
- def get_wait_up_processes(self):
- """
- Gets the list of local processes to wait for in wait_up.
- """
- get_config = global_config.global_config.get_config_value
- proc_list = get_config("HOSTS", "wait_up_processes",
- default="").strip()
- processes = set(p.strip() for p in proc_list.split(","))
- processes.discard("")
- return processes
+ def get_wait_up_processes(self):
+ """
+ Gets the list of local processes to wait for in wait_up.
+ """
+ get_config = global_config.global_config.get_config_value
+ proc_list = get_config("HOSTS", "wait_up_processes",
+ default="").strip()
+ processes = set(p.strip() for p in proc_list.split(","))
+ processes.discard("")
+ return processes
- def wait_up(self, timeout):
- pass
+ def wait_up(self, timeout):
+ pass
- def wait_down(self, timeout):
- pass
+ def wait_down(self, timeout):
+ pass
- def get_num_cpu(self):
- pass
+ def get_num_cpu(self):
+ pass
- def machine_install(self):
- raise NotImplementedError('Machine install not implemented!')
+ def machine_install(self):
+ raise NotImplementedError('Machine install not implemented!')
- def install(self, installableObject):
- installableObject.install(self)
+ def install(self, installableObject):
+ installableObject.install(self)
- def get_crashdumps(self, test_start_time):
- pass
+ def get_crashdumps(self, test_start_time):
+ pass
- def get_autodir(self):
- return None
+ def get_autodir(self):
+ return None