1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 02:41:11 +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:
Sergei Trofimov 2018-06-12 14:47:26 +01:00 committed by setrofim
parent ea97372ece
commit 2cb1f47e11

View File

@ -388,13 +388,13 @@ class Executor(object):
self.logger.info('Starting run')
runner = Runner(context, pm)
signal.send(signal.RUN_STARTED, self)
signal.send(signal.RUN_STARTED, self, context)
try:
runner.run()
finally:
context.finalize()
self.execute_postamble(context, output)
signal.send(signal.RUN_COMPLETED, self)
signal.send(signal.RUN_COMPLETED, self, context)
def execute_postamble(self, context, output):
self.logger.info('Done.')