Skip to content

Commit

Permalink
report: fix wrong categorize logic causing unexpected pass (#373)
Browse files Browse the repository at this point in the history
Signed-off-by: Jerry Zhang Jian <[email protected]>
  • Loading branch information
jerryzj authored Oct 16, 2024
1 parent a5a5bd6 commit d5cd094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rvv-intrinsic-generator/rvv_intrinsic_gen/testing-report
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def api_testing_report(stats, opts):
# passed if the number of warning equal to line number
with open(log, 'r') as fp:
last_line = fp.readlines()[-1]
if last_line.count('error') == 0:
if last_line.count('warning') != 0 and opts.warning_as_error:
if opts.warning_as_error:
if 'error' not in last_line and 'warning' in last_line:
stats[grp][subgrp].failed_list.append(testname)
result.failed_list.append(testname)
test_case.result = [Error("Treat warning as error", "warning")]
Expand Down

0 comments on commit d5cd094

Please sign in to comment.