Skip to content

Commit

Permalink
fixing passing/failing counts in CI summary
Browse files Browse the repository at this point in the history
  • Loading branch information
scrasmussen committed Aug 9, 2024
1 parent c2447bb commit 06ebb17
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scm/src/run_scm.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,9 +780,6 @@ def print_report(logs, total_count, max_str_lens,
suite_l = max_str_lens.suite
namelist_l = max_str_lens.namelist
status_l = max_str_lens.status
# error_log contains header, subtracting 1 from error
error_count = logs.shape[0] - 1
passing_count = total_count - error_count
header_printed = False
column_width = (case_l + suite_l + namelist_l + status_l + 13)

Expand All @@ -799,10 +796,14 @@ def print_report(logs, total_count, max_str_lens,
if not header_printed:
print("-" * column_width)
header_printed = True

print("-" * column_width)
if (passing):
# error_log contains header, subtracting 1 from error
passing_count = logs.shape[0] - 1
print(f"[{passing_count}/{total_count}] passing cases")
if (failing):
error_count = logs.shape[0] - 1
print(f"[{error_count}/{total_count}] failed cases")


Expand Down

0 comments on commit 06ebb17

Please sign in to comment.