Skip to content

Commit

Permalink
Sanitized group names for test checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Fiwo735 committed Feb 14, 2024
1 parent 68379ed commit 4b7bbb0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import argparse
import shutil
import subprocess
import re
import queue
from pathlib import Path
from concurrent.futures import ThreadPoolExecutor, as_completed
Expand Down Expand Up @@ -332,13 +333,14 @@ def empty_log_queue(
"""
while not log_queue.empty():
print_msg, xml_message = log_queue.get()
processed_msg = re.sub(r"(/workspaces/).+?/([compiler_tests|bin])", r"\1\2", print_msg)

if verbose:
print(print_msg)
else:
if "Pass" in print_msg:
if "Pass" in processed_msg:
progress_bar.test_passed()
elif "Fail" in print_msg:
elif "Fail" in processed_msg:
progress_bar.test_failed()

with open(J_UNIT_OUTPUT_FILE, "a") as xml_file:
Expand Down

0 comments on commit 4b7bbb0

Please sign in to comment.