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

framework/execution: fix end of run status reporting

Changes to the Status enum introduced by 31a535b5 and a9959550 broke
ran Jobs summary status at the end of the run. This fixes it so that the
total number of jobs and individual status counts are reported
correctly.
This commit is contained in:
Sergei Trofimov 2017-10-11 17:24:09 +01:00
parent 4826f8f2f2
commit 890428dbf6
2 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ class Executor(object):
counter = context.run_state.get_status_counts()
parts = []
for status in reversed(Status.values):
for status in reversed(Status.levels):
if status in counter:
parts.append('{} {}'.format(counter[status], status))
self.logger.info(status_summary + ', '.join(parts))

View File

@ -76,7 +76,7 @@ class RunState(object):
@property
def num_completed_jobs(self):
return sum(1 for js in self.jobs.itervalues()
if js.status > Status.SKIPPED)
if js.status > Status.RUNNING)
def __init__(self):
self.jobs = OrderedDict()