1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 02:41:11 +01:00

fw/output: add augmentations to RunOutput

Add a property that gives augmentations used by all jobs in the run to
RunOutput.
This commit is contained in:
setrofim 2018-03-29 18:43:13 +01:00
parent 06fc361f47
commit 117f0f9fc4

View File

@ -181,6 +181,14 @@ class RunOutput(Output):
if self._combined_config: if self._combined_config:
return self._combined_config.settings return self._combined_config.settings
@property
def augmentations(self):
run_augs = set([])
for job in self.jobs:
for aug in job.spec.augmentations:
run_augs.add(aug)
return list(run_augs)
def __init__(self, path): def __init__(self, path):
super(RunOutput, self).__init__(path) super(RunOutput, self).__init__(path)
self.info = None self.info = None