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:
Celtic Minstrel 2021-04-15 23:00:44 -04:00
parent bb10bbe059
commit 038219b823

View file

@ -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)))