diff options
author | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2007-08-31 14:46:26 +0000 |
---|---|---|
committer | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2007-08-31 14:46:26 +0000 |
commit | d6446329d22d0409177df110760ffced7599b079 (patch) | |
tree | cb12c91c6d664bfb2e50567caaa60d0573a7d2f8 /client | |
parent | ad993f08ebb6113ba7fc7f21fe9ebb98e2e4161e (diff) |
add missing standalone.py from Andy
Signed-off-by: Martin J. Bligh <mbligh@google.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@656 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'client')
-rw-r--r-- | client/bin/harness_standalone.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/client/bin/harness_standalone.py b/client/bin/harness_standalone.py new file mode 100644 index 00000000..e9005a1f --- /dev/null +++ b/client/bin/harness_standalone.py @@ -0,0 +1,30 @@ +"""The standalone harness interface + +The default interface as required for the standalone reboot helper. +""" + +__author__ = """Copyright Andy Whitcroft 2007""" + +from autotest_utils import * +import os, harness, shutil + +class harness_standalone(harness.harness): + """The standalone server harness + + Properties: + job + The job object for this job + """ + + def __init__(self, job): + """ + job + The job object for this job + """ + + self.setup(job) + + src = job.control_get() + dest = os.path.join(os.environ['AUTODIR'], 'control') + if os.path.abspath(src) != os.path.abspath(dest): + shutil.copyfile(src, dest) |