aboutsummaryrefslogtreecommitdiff
path: root/wa/framework
diff options
context:
space:
mode:
authorSergei Trofimov <sergei.trofimov@arm.com>2018-07-11 11:01:17 +0100
committerMarc Bonnici <marc.bonnici@arm.com>2018-07-11 13:28:04 +0100
commitce9382396746e4d8982f1d9ec9916ffdd596f6ed (patch)
tree8e431fba155723dc7969324b5ac7a53cec7c6c93 /wa/framework
parent7755363efd3cdc916c2d0f39404b1960c1762140 (diff)
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.
Diffstat (limited to 'wa/framework')
-rw-r--r--wa/framework/execution.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/wa/framework/execution.py b/wa/framework/execution.py
index 2a9dc544..1e06ab19 100644
--- a/wa/framework/execution.py
+++ b/wa/framework/execution.py
@@ -178,6 +178,9 @@ class ExecutionContext(object):
self.skip_job(job)
self.write_state()
+ def write_config(self):
+ self.run_output.write_config(self.cm.get_config())
+
def write_state(self):
self.run_output.write_state()
@@ -423,6 +426,8 @@ class Executor(object):
pm.install(proc, context)
pm.validate()
+ context.write_config()
+
self.logger.info('Starting run')
runner = Runner(context, pm)
signal.send(signal.RUN_STARTED, self, context)