From 2a13c833b57155c7a958718c2f46976a4dee318d Mon Sep 17 00:00:00 2001 From: "Yang, Bo" Date: Tue, 20 Jun 2023 14:44:42 -0700 Subject: [PATCH] Print error logs from workers during integration tests --- integration-tests/conftest.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/integration-tests/conftest.py b/integration-tests/conftest.py index 8f59d75a..8cf023ec 100644 --- a/integration-tests/conftest.py +++ b/integration-tests/conftest.py @@ -245,7 +245,7 @@ def launcher(event_loop): env["USE_FLASH_ATTENTION"] = "false" with subprocess.Popen( - args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env + args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env ) as process: yield ProcessLauncherHandle(process, port) @@ -256,7 +256,6 @@ def launcher(event_loop): print(launcher_output, file=sys.stderr) process.stdout.close() - process.stderr.close() if not use_flash_attention: del env["USE_FLASH_ATTENTION"]