We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5a5bd6 commit d5cd094Copy full SHA for d5cd094
rvv-intrinsic-generator/rvv_intrinsic_gen/testing-report
@@ -90,8 +90,8 @@ def api_testing_report(stats, opts):
90
# passed if the number of warning equal to line number
91
with open(log, 'r') as fp:
92
last_line = fp.readlines()[-1]
93
- if last_line.count('error') == 0:
94
- 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:
95
stats[grp][subgrp].failed_list.append(testname)
96
result.failed_list.append(testname)
97
test_case.result = [Error("Treat warning as error", "warning")]
0 commit comments