mbligh | 7f7dbd3 | 2007-08-31 14:46:26 +0000 | [diff] [blame^] | 1 | """The standalone harness interface |
| 2 | |
| 3 | The default interface as required for the standalone reboot helper. |
| 4 | """ |
| 5 | |
| 6 | __author__ = """Copyright Andy Whitcroft 2007""" |
| 7 | |
| 8 | from autotest_utils import * |
| 9 | import os, harness, shutil |
| 10 | |
| 11 | class 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) |