Skip to content

Commit 41e6624

Browse files
authored
fix: log only the required environment variables (#24937)
Fixes #24764 This was 100% AI generated fix. All I did was "#fetch #24764 and fix".
1 parent 944c204 commit 41e6624

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/client/testing/testController/pytest/pytestDiscoveryAdapter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class PytestTestDiscoveryAdapter implements ITestDiscoveryAdapter {
112112
mutableEnv.PYTHONPATH = pythonPathCommand;
113113
mutableEnv.TEST_RUN_PIPE = discoveryPipeName;
114114
traceInfo(
115-
`All environment variables set for pytest discovery, PYTHONPATH: ${JSON.stringify(mutableEnv.PYTHONPATH)}`,
115+
`Environment variables set for pytest discovery: PYTHONPATH=${mutableEnv.PYTHONPATH}, TEST_RUN_PIPE=${mutableEnv.TEST_RUN_PIPE}`,
116116
);
117117

118118
// delete UUID following entire discovery finishing.

src/client/testing/testController/pytest/pytestExecutionAdapter.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter {
138138
const testIdsFileName = await utils.writeTestIdsFile(testIds);
139139
mutableEnv.RUN_TEST_IDS_PIPE = testIdsFileName;
140140
traceInfo(
141-
`All environment variables set for pytest execution, PYTHONPATH: ${JSON.stringify(
142-
mutableEnv.PYTHONPATH,
143-
)}`,
141+
`Environment variables set for pytest execution: PYTHONPATH=${mutableEnv.PYTHONPATH}, TEST_RUN_PIPE=${mutableEnv.TEST_RUN_PIPE}, RUN_TEST_IDS_PIPE=${mutableEnv.RUN_TEST_IDS_PIPE}`,
144142
);
145143

146144
const spawnOptions: SpawnOptions = {

0 commit comments

Comments
 (0)