Skip to content

Commit 97b87e3

Browse files
committed
Print run_test output, too
Close #106
1 parent 6de22ea commit 97b87e3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

suite.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,16 @@ def run_test(self, test, base_command):
967967
test.run_command = test_run_command
968968
test.return_code = ierr
969969

970+
# Print compilation error message (useful for CI tests)
971+
if test.return_code != 0 and self.verbose > 0:
972+
self.log.warn("Test stdout:")
973+
with open(f"{outfile}") as f:
974+
print(f.read())
975+
if os.path.isfile(errfile):
976+
self.log.warn("Test stderr:")
977+
with open(f"{errfile}") as f:
978+
print(f.read())
979+
970980
def copy_backtrace(self, test):
971981
"""
972982
if any backtrace files were output (because the run crashed), find them

0 commit comments

Comments
 (0)