1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-11-19 16:26:08 +00:00

fw/signal: add job signals

Add matched signals for before-after job execution. These are the
equivalent of "spec" signals in WA2.
This commit is contained in:
Sergei Trofimov
2018-05-29 09:20:52 +01:00
committed by Marc Bonnici
parent 0dc9390978
commit 573c6abcb5
3 changed files with 12 additions and 3 deletions

View File

@@ -509,9 +509,10 @@ class Runner(object):
self.logger.info('Rebooting on new spec.')
self.context.tm.target.reboot()
context.tm.start()
self.do_run_job(job, context)
job.set_status(Status.OK)
with signal.wrap('JOB', self, context):
context.tm.start()
self.do_run_job(job, context)
job.set_status(Status.OK)
except (Exception, KeyboardInterrupt) as e: # pylint: disable=broad-except
log.log_error(e, self.logger)
if isinstance(e, KeyboardInterrupt):