Skip to content

Commit

Permalink
scripts: test: print full log on error
Browse files Browse the repository at this point in the history
  • Loading branch information
atafra committed Nov 27, 2024
1 parent dcc94b0 commit add9208
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ def run_test(cmd, arch='native', retry_if_status=None):
else:
print('FAILED\n')
if cfg.log:
print(f'Error: test failed, see "{cfg.log}" for details')
print(f'Error: test failed, see "{cfg.log}" for details:')
with open(cfg.log, 'r') as f:
print(f.read())
else:
print('Error: test failed')
exit(1)
Expand Down

0 comments on commit add9208

Please sign in to comment.