Skip to content

Commit

Permalink
Update runtest.py to show the result of the logfile
Browse files Browse the repository at this point in the history
Signed-off-by: Giuliano Belinassi <[email protected]>
  • Loading branch information
giulianobelinassi committed May 31, 2024
1 parent eaccc0b commit 68450db
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions testsuite/lib/runtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,18 @@ def parse_args():
exit(1)

# Run test.
r = 0
test = libtest.UnitTest(input_path, logfile_path, binaries_path)
if is_inline_test:
r = test.run_inline_test(is_lto_test)
else:
r = test.run_test(is_lto_test)

# Call the destructor to close the log file.
del test
# Report the content of the files
log = open(logfile_path, "r")
print(log.read())
log.close()

exit(r)

0 comments on commit 68450db

Please sign in to comment.