From a2350a94170a14ea4bb095089437d9f95c993336 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 11 Mar 2026 22:28:28 +0000 Subject: [PATCH 1/2] Initial plan From 46bfe20a49462c949c99684b35f0088202df583c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 11 Mar 2026 22:36:52 +0000 Subject: [PATCH 2/2] Remove unwanted debug print statements for PROJECT_ROOT_PATH in unittest adapter Fixes #24743-like issue where "PROJECT_ROOT_PATH is set, using ... as cwd for execution payload" debug output was appearing in Test Results output. Removes print() calls from both execution.py and discovery.py while preserving all functional logic. Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com> --- python_files/unittestadapter/discovery.py | 3 --- python_files/unittestadapter/execution.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/python_files/unittestadapter/discovery.py b/python_files/unittestadapter/discovery.py index b3086d92b102..c864ac76916b 100644 --- a/python_files/unittestadapter/discovery.py +++ b/python_files/unittestadapter/discovery.py @@ -146,9 +146,6 @@ def discover_tests( project_root_path = os.environ.get("PROJECT_ROOT_PATH") if project_root_path: top_level_dir = project_root_path - print( - f"PROJECT_ROOT_PATH is set, using {project_root_path} as top_level_dir for discovery" - ) # Perform regular unittest test discovery. # Pass project_root_path so the payload's cwd matches the project root. diff --git a/python_files/unittestadapter/execution.py b/python_files/unittestadapter/execution.py index e031138b6f75..422f246d3476 100644 --- a/python_files/unittestadapter/execution.py +++ b/python_files/unittestadapter/execution.py @@ -373,9 +373,6 @@ def send_run_data(raw_data, test_run_pipe): # Update the module-level variable for send_run_data to use # pylint: disable=global-statement globals()["PROJECT_ROOT_PATH"] = project_root_path - print( - f"PROJECT_ROOT_PATH is set, using {project_root_path} as cwd for execution payload" - ) # Perform regular unittest execution. # Pass project_root_path so the payload's cwd matches the project root.