mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 04:21:17 +00: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:
parent
4826f8f2f2
commit
890428dbf6
@ -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))
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user