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:
if options.keep_going:
restore_config(options, True)
if successes:
log_line('{} passed'.format(' '.join(successes)), color=colors.bold_green)
if failures:
if successes:
log_line('{} passed; {} FAILED'.format(' '.join(successes),
' '.join(failures)))
else:
log_line('{} FAILED'.format(' '.join(failures)))
log_line('{} FAILED'.format(' '.join(failures)), color=colors.bold_red)
return False
else:
log_line('{} passed'.format(' '.join(successes)))
return True