harness: hold off run_start till everything is initialised
Currently harness initialisation and run_start are one and the
same. By moving this to the end of job initialisation we
ensure the harness gets a chance to modify the environment
when the job truly is ready to start.
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@401 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/bin/job.py b/client/bin/job.py
index 471da68..a71bacf 100755
--- a/client/bin/job.py
+++ b/client/bin/job.py
@@ -96,6 +96,8 @@
system(self.bindir + '/sysinfo.py')
os.chdir(pwd)
+ self.harness.run_start()
+
def harness_select(self, which):
self.harness = harness.select(which, self)