mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-06-18 22:36:01 +01:00
fw/exec: pass context to run started/completed signals
To be consistent with the rest of exec signals.
This commit is contained in:
committed by
setrofim
parent
ea97372ece
commit
2cb1f47e11
@ -388,13 +388,13 @@ class Executor(object):
|
|||||||
|
|
||||||
self.logger.info('Starting run')
|
self.logger.info('Starting run')
|
||||||
runner = Runner(context, pm)
|
runner = Runner(context, pm)
|
||||||
signal.send(signal.RUN_STARTED, self)
|
signal.send(signal.RUN_STARTED, self, context)
|
||||||
try:
|
try:
|
||||||
runner.run()
|
runner.run()
|
||||||
finally:
|
finally:
|
||||||
context.finalize()
|
context.finalize()
|
||||||
self.execute_postamble(context, output)
|
self.execute_postamble(context, output)
|
||||||
signal.send(signal.RUN_COMPLETED, self)
|
signal.send(signal.RUN_COMPLETED, self, context)
|
||||||
|
|
||||||
def execute_postamble(self, context, output):
|
def execute_postamble(self, context, output):
|
||||||
self.logger.info('Done.')
|
self.logger.info('Done.')
|
||||||
|
Reference in New Issue
Block a user