Skip to content

Commit 6de22ea

Browse files
committed
Print Errors: Only with suite.verbose
1 parent a24a43e commit 6de22ea

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

regtest.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,9 +563,11 @@ def test_suite(argv):
563563
if not test.compile_successful:
564564
error_msg = "ERROR: compilation failed"
565565
report.report_single_test(suite, test, test_list, failure_msg=error_msg)
566+
566567
# Print compilation error message (useful for CI tests)
567-
with open(f"{output_dir}/{test.name}.make.out") as f:
568-
print(f.read())
568+
if suite.verbose > 0:
569+
with open(f"{output_dir}/{test.name}.make.out") as f:
570+
print(f.read())
569571

570572
continue
571573

@@ -1082,9 +1084,11 @@ def test_suite(argv):
10821084
else:
10831085
analysis_successful = False
10841086
suite.log.warn("analysis failed...")
1087+
10851088
# Print analysis error message (useful for CI tests)
1086-
with open(outfile) as f:
1087-
print(f.read())
1089+
if suite.verbose > 0:
1090+
with open(outfile) as f:
1091+
print(f.read())
10881092

10891093
test.analysis_successful = analysis_successful
10901094

0 commit comments

Comments
 (0)