mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 20:38:57 +00:00
framework/output: add list_workloads to RunOutput
Add a convenience method to list which workloads (as per their label) were involved in a run.
This commit is contained in:
parent
2b0b6ed3db
commit
5b15b115a7
@ -263,6 +263,13 @@ class RunOutput(Output):
|
||||
return spec
|
||||
return None
|
||||
|
||||
def list_workloads(self):
|
||||
workloads = []
|
||||
for job in self.jobs:
|
||||
if job.label not in workloads:
|
||||
workloads.append(job.label)
|
||||
return workloads
|
||||
|
||||
|
||||
class JobOutput(Output):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user