Skip to content

Commit b3350a2

Browse files
committed
python coding style on the file
1 parent 8c46bec commit b3350a2

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

util/compare_test_results.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,13 @@ def compare_results(current_file, reference_file, ignore_file=None, output_file=
8585
non_intermittent_new_failures = new_failures - ignore_set
8686

8787
# Check if results are identical (no changes)
88-
no_changes = (pass_diff == 0 and fail_diff == 0 and total_diff == 0
89-
and not new_failures and not improvements)
88+
no_changes = (
89+
pass_diff == 0
90+
and fail_diff == 0
91+
and total_diff == 0
92+
and not new_failures
93+
and not improvements
94+
)
9095

9196
# If no changes, write empty output to prevent comment posting
9297
if no_changes:
@@ -99,8 +104,12 @@ def compare_results(current_file, reference_file, ignore_file=None, output_file=
99104

100105
# Show current vs reference numbers for debugging
101106
output_lines.append("Test results comparison:")
102-
output_lines.append(f" Current: TOTAL: {current_summary.get('total', 0)} / PASSED: {current_summary.get('passed', 0)} / FAILED: {current_summary.get('failed', 0)} / SKIPPED: {current_summary.get('skipped', 0)}")
103-
output_lines.append(f" Reference: TOTAL: {reference_summary.get('total', 0)} / PASSED: {reference_summary.get('passed', 0)} / FAILED: {reference_summary.get('failed', 0)} / SKIPPED: {reference_summary.get('skipped', 0)}")
107+
output_lines.append(
108+
f" Current: TOTAL: {current_summary.get('total', 0)} / PASSED: {current_summary.get('passed', 0)} / FAILED: {current_summary.get('failed', 0)} / SKIPPED: {current_summary.get('skipped', 0)}"
109+
)
110+
output_lines.append(
111+
f" Reference: TOTAL: {reference_summary.get('total', 0)} / PASSED: {reference_summary.get('passed', 0)} / FAILED: {reference_summary.get('failed', 0)} / SKIPPED: {reference_summary.get('skipped', 0)}"
112+
)
104113
output_lines.append("")
105114

106115
# Summary of changes

0 commit comments

Comments
 (0)