1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-06 05:12:36 +01:00

fw/exec: Add add_classifier() method

Add add_classifier() method to context. Allow plugins to add classifiers
to the current job, or the run as a whole. This will ensure that the new
classifiers are propagated to all relevant current and future artifacts
and metrics.
This commit is contained in:
Sergei Trofimov
2020-01-17 15:07:21 +00:00
committed by Marc Bonnici
parent 796f62d924
commit 659e60414f
4 changed files with 45 additions and 3 deletions

View File

@@ -249,6 +249,11 @@ class ExecutionContext(object):
def add_event(self, message):
self.output.add_event(message)
def add_classifier(self, name, value, overwrite=False):
self.output.add_classifier(name, value, overwrite)
if self.current_job:
self.current_job.add_classifier(name, value, overwrite)
def add_metadata(self, key, *args, **kwargs):
self.output.add_metadata(key, *args, **kwargs)