mirror of
https://github.com/matrix-org/dendrite
synced 2024-12-12 22:33:13 +01:00
Allow partial test runs (#2076)
Signed-off-by: Till Faelligen <tfaelligen@gmail.com>
This commit is contained in:
parent
e5a5be9f54
commit
640ba425e2
1 changed files with 4 additions and 0 deletions
|
@ -177,6 +177,10 @@ def print_stats(header_name, gid_to_tests, gid_to_name, verbose):
|
|||
line = "%s: %s (%d/%d tests)" % (gid_to_name[gid].ljust(25, ' '), pct.rjust(4, ' '), group_passing, group_total)
|
||||
subsections.append(line)
|
||||
subsection_test_names[line] = test_names_and_marks
|
||||
|
||||
# avoid errors when trying to divide by 0
|
||||
if total_tests == 0:
|
||||
return
|
||||
|
||||
pct = "{0:.0f}%".format(total_passing/total_tests * 100)
|
||||
print("%s: %s (%d/%d tests)" % (header_name, pct, total_passing, total_tests))
|
||||
|
|
Loading…
Reference in a new issue