Simplify final passed/failed reporting

Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
Gilles Peskine 2019-01-29 18:50:03 +01:00 committed by Andrzej Kurek
parent 0fa7cbeeb9
commit e85163bb5c

View file

@ -323,15 +323,12 @@ Run the jobs listed in options.domains."""
finally: finally:
if options.keep_going: if options.keep_going:
restore_config(options, True) restore_config(options, True)
if successes:
log_line('{} passed'.format(' '.join(successes)), color=colors.bold_green)
if failures: if failures:
if successes: log_line('{} FAILED'.format(' '.join(failures)), color=colors.bold_red)
log_line('{} passed; {} FAILED'.format(' '.join(successes),
' '.join(failures)))
else:
log_line('{} FAILED'.format(' '.join(failures)))
return False return False
else: else:
log_line('{} passed'.format(' '.join(successes)))
return True return True