1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-02 11:22:41 +01:00

Updating result object to track their output directories.

Also, context.result will no result in context.run_result when
not executing a job.
This commit is contained in:
Sergei Trofimov
2015-04-14 14:38:59 +01:00
parent 8e340e456d
commit 5bf9f05c4b
2 changed files with 7 additions and 4 deletions

View File

@@ -191,12 +191,13 @@ class RunResult(object):
else:
return self.UNKNOWN # should never happen
def __init__(self, run_info):
def __init__(self, run_info, output_directory=None):
self.info = run_info
self.iteration_results = []
self.artifacts = []
self.events = []
self.non_iteration_errors = False
self.output_directory = output_directory
class RunEvent(object):
@@ -255,6 +256,7 @@ class IterationResult(object):
self.workload = spec.workload
self.iteration = None
self.status = self.NOT_STARTED
self.output_directory = None
self.events = []
self.metrics = []
self.artifacts = []