mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-12 07:59:04 +00:00
fw/execution: write config after installing augs
Add Context.write_config() to write the combined config into run output __meta. Use it after instruments and result processors get installed to make sure their configuration gets serialized in the output.
This commit is contained in:
parent
7755363efd
commit
ce93823967
@ -178,6 +178,9 @@ class ExecutionContext(object):
|
|||||||
self.skip_job(job)
|
self.skip_job(job)
|
||||||
self.write_state()
|
self.write_state()
|
||||||
|
|
||||||
|
def write_config(self):
|
||||||
|
self.run_output.write_config(self.cm.get_config())
|
||||||
|
|
||||||
def write_state(self):
|
def write_state(self):
|
||||||
self.run_output.write_state()
|
self.run_output.write_state()
|
||||||
|
|
||||||
@ -423,6 +426,8 @@ class Executor(object):
|
|||||||
pm.install(proc, context)
|
pm.install(proc, context)
|
||||||
pm.validate()
|
pm.validate()
|
||||||
|
|
||||||
|
context.write_config()
|
||||||
|
|
||||||
self.logger.info('Starting run')
|
self.logger.info('Starting run')
|
||||||
runner = Runner(context, pm)
|
runner = Runner(context, pm)
|
||||||
signal.send(signal.RUN_STARTED, self, context)
|
signal.send(signal.RUN_STARTED, self, context)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user