Skip to content

Commit d5cd094

Browse files
authored
report: fix wrong categorize logic causing unexpected pass (#373)
Signed-off-by: Jerry Zhang Jian <jerry.zhangjian@sifive.com>
1 parent a5a5bd6 commit d5cd094

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rvv-intrinsic-generator/rvv_intrinsic_gen/testing-report

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ def api_testing_report(stats, opts):
9090
# passed if the number of warning equal to line number
9191
with open(log, 'r') as fp:
9292
last_line = fp.readlines()[-1]
93-
if last_line.count('error') == 0:
94-
if last_line.count('warning') != 0 and opts.warning_as_error:
93+
if opts.warning_as_error:
94+
if 'error' not in last_line and 'warning' in last_line:
9595
stats[grp][subgrp].failed_list.append(testname)
9696
result.failed_list.append(testname)
9797
test_case.result = [Error("Treat warning as error", "warning")]

0 commit comments

Comments
 (0)