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:
committed by
Marc Bonnici
parent
0dc9390978
commit
573c6abcb5
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user