Skip to content

Commit

Permalink
common_test_utils.py: Add debugging prints to check if there's infini…
Browse files Browse the repository at this point in the history
…te loops while reading slips logs
  • Loading branch information
AlyaGomaa committed Aug 30, 2024
1 parent a2b51cf commit fc0074c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/common_test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,12 @@ def has_errors(output_dir):
error_files = ("slips_output.txt", "errors.log")
error_files = [os.path.join(output_dir, file) for file in error_files]

# we can't redirect stderr to a file and check it because we catch all exceptions in slips
# we can't redirect stderr to a file and check it because we catch all
# exceptions in slips
for file in error_files:
with open(file, "r") as f:
for line in f:
print(f" Checking erorrs in: {line}")
if has_ignored_errors(line):
continue

Expand Down

0 comments on commit fc0074c

Please sign in to comment.