diff --git a/Tools/test_pages_for_errors.py b/Tools/test_pages_for_errors.py index 6ca56c8..070d57d 100644 --- a/Tools/test_pages_for_errors.py +++ b/Tools/test_pages_for_errors.py @@ -7,26 +7,14 @@ async def run_tests(): process = subprocess.Popen( - ["dotnet", "run", "--no-build", "--project", "./ReplayBrowser/ReplayBrowser.csproj"], + ["dotnet", "run", "--no-build", "--project", "./ReplayBrowser/ReplayBrowser.csproj", "--configuration", "Testing"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, preexec_fn=os.setsid, - text=True ) error_found = {"value": False} - def stream_output(pipe, stream_name): - while True: - line = pipe.readline() - if line: - print(f"{stream_name}: {line.strip()}") - else: - break - - stdout_thread = asyncio.get_event_loop().run_in_executor(None, stream_output, process.stdout, "STDOUT") - stderr_thread = asyncio.get_event_loop().run_in_executor(None, stream_output, process.stderr, "STDERR") - try: print("Waiting for the application to start...") await asyncio.sleep(20) @@ -79,10 +67,6 @@ def stream_output(pipe, stream_name): except Exception as e: print(f"Error stopping the application: {e}") - # Ensure all output streams are processed before exiting - await stdout_thread - await stderr_thread - def handle_console_message(msg, error_found): if msg.type == 'error': print(f"Console error: {msg.text}")