From 1524c172a403976a9c35131ecf982ffc7cd4e49c Mon Sep 17 00:00:00 2001 From: Lizhi Zhou <1432185+reasonsolo@users.noreply.github.com> Date: Wed, 28 Jan 2026 14:55:55 +0800 Subject: [PATCH] [https://nvbugs/5821433][fix] WAR for popen in QA env (#10989) Signed-off-by: Lizhi Zhou <1432185+reasonsolo@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com> --- tests/integration/defs/disaggregated/test_auto_scaling.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/defs/disaggregated/test_auto_scaling.py b/tests/integration/defs/disaggregated/test_auto_scaling.py index 0f31ce54c7..038049109d 100644 --- a/tests/integration/defs/disaggregated/test_auto_scaling.py +++ b/tests/integration/defs/disaggregated/test_auto_scaling.py @@ -147,14 +147,14 @@ def _run_worker(model_name, env = os.environ.copy() log_file = None log_path = None + stdout = None + stderr = None if save_log: log_path = os.path.join(work_dir, f"worker_{role}_{port}.log") log_file = open(log_path, "w+") stdout = log_file stderr = log_file - else: - stdout = sys.stdout - stderr = sys.stderr + if device != -1: env["CUDA_VISIBLE_DEVICES"] = str(device) print(f"Running {role} on port {port}")