summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authormbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2007-08-31 14:46:26 +0000
committermbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2007-08-31 14:46:26 +0000
commitd6446329d22d0409177df110760ffced7599b079 (patch)
treecb12c91c6d664bfb2e50567caaa60d0573a7d2f8 /client
parentad993f08ebb6113ba7fc7f21fe9ebb98e2e4161e (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.py30
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)