run_wml_tests: Show negative test summary values
These values should never BE negative, but by showing them if they are, it makes it more obvious if something is broken.
This commit is contained in:
parent
bb10bbe059
commit
038219b823
1 changed files with 3 additions and 3 deletions
|
@ -313,11 +313,11 @@ if __name__ == '__main__':
|
|||
|
||||
if test_summary.passed != test_summary.total:
|
||||
breakdown = ["{0} passed".format(test_summary.passed)]
|
||||
if test_summary.failed > 0:
|
||||
if test_summary.failed != 0:
|
||||
breakdown.append("{0} failed".format(test_summary.failed))
|
||||
if test_summary.crashed > 0:
|
||||
if test_summary.crashed != 0:
|
||||
breakdown.append("{0} crashed".format(test_summary.crashed))
|
||||
if test_summary.skipped > 0:
|
||||
if test_summary.skipped != 0:
|
||||
breakdown.append("{0} skipped".format(test_summary.skipped))
|
||||
print(" ({0})".format(', '.join(breakdown)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue