1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-02 19:32:34 +01:00

Augmentations: Allow configuring of augmentations per workload

Add support for enabling and disabling of augmentations (instruments and
output processors) on a per workload basis.
This commit is contained in:
Marc Bonnici
2018-01-29 09:47:52 +00:00
committed by setrofim
parent 557d62ce86
commit 9a556721b6
3 changed files with 99 additions and 12 deletions

View File

@@ -273,7 +273,7 @@ class Executor(object):
Params::
:state: a ``ConfigManager`` containing processed configuraiton
:state: a ``ConfigManager`` containing processed configuration
:output: an initialized ``RunOutput`` that will be used to
store the results.
@@ -402,6 +402,7 @@ class Runner(object):
def finalize_run(self):
self.logger.info('Finalizing run')
self.context.end_run()
self.pm.enable_all()
self.pm.process_run_output(self.context)
self.pm.export_run_output(self.context)
self.pm.finalize()
@@ -446,6 +447,9 @@ class Runner(object):
job.set_status(Status.RUNNING)
self.send(signal.JOB_STARTED)
self.logger.info('Configuring augmentations')
job.configure_augmentations(context, self.pm)
with signal.wrap('JOB_TARGET_CONFIG', self, context):
job.configure_target(context)