Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
BoPeng committed Feb 12, 2024
1 parent d148337 commit 9abd85b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,14 @@ def test_failed(test_names, return_code):
failed_tests.extend(run_tests(args, tests))

if failed_tests:
failed_tests = []
retried_failed_tests = []
for test in failed_tests:
print(f'\n\nRerunning {test}\n')
failed_tests.extend(run_tests(args, [test], show_output=True))
retried_failed_tests.extend(run_tests(args, [test], show_output=True))
#
failed_tests = retried_failed_tests

if failed_tests:
print(f'Failed tests (logged to {LOGFILE}):\n' + '\n'.join(failed_tests))
else:
print(f'All {len(all_tests)} tests complete successfully.')
Expand Down

0 comments on commit 9abd85b

Please sign in to comment.