1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 02:41:11 +01:00

updated ExecutionContext to keep a reference to the runner.

This will enable Extenstions to do things like modify the job queue.
This commit is contained in:
Sergei Trofimov 2015-04-09 11:28:53 +01:00
parent 958a8a09da
commit 070b2230c9

View File

@ -151,6 +151,7 @@ class ExecutionContext(object):
self.run_artifacts = copy(self.default_run_artifacts)
self.job_iteration_counts = defaultdict(int)
self.aborted = False
self.runner = None
if settings.agenda:
self.run_artifacts.append(Artifact('agenda',
os.path.join(self.host_working_directory,
@ -511,6 +512,7 @@ class Runner(object):
self._send(signal.RUN_END)
def _initialize_run(self):
self.context.runner = self
self.context.run_info.start_time = datetime.utcnow()
self._connect_to_device()
self.logger.info('Initializing device')