blob: e9005a1fa16f61f5ce23296fd7ed774c6e99f5aa [file] [log] [blame]
mbligh7f7dbd32007-08-31 14:46:26 +00001"""The standalone harness interface
2
3The default interface as required for the standalone reboot helper.
4"""
5
6__author__ = """Copyright Andy Whitcroft 2007"""
7
8from autotest_utils import *
9import os, harness, shutil
10
11class harness_standalone(harness.harness):
12 """The standalone server harness
13
14 Properties:
15 job
16 The job object for this job
17 """
18
19 def __init__(self, job):
20 """
21 job
22 The job object for this job
23 """
24
25 self.setup(job)
26
27 src = job.control_get()
28 dest = os.path.join(os.environ['AUTODIR'], 'control')
29 if os.path.abspath(src) != os.path.abspath(dest):
30 shutil.copyfile(src, dest)