Skip to content

Commit 439694d

Browse files
trivikraduh95
authored andcommitted
test_runner: filter execArgv fallback for child tests
Apply the test runner propagation filter to execArgv entries that are not reported by the options binding. This prevents config-file and test-runner flags from leaking into isolated child tests while still preserving V8 flags. Signed-off-by: Kamat, Trivikram <[email protected]> Assisted-by: openai:gpt-5.5 PR-URL: #64056 Refs: https://github.com/nodejs/reliability/issues?q=%22test-runner-flag-propagation%22 Reviewed-By: Filip Skokan <[email protected]>
1 parent 8c8ff86 commit 439694d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/internal/test_runner/runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ function getRunArgs(path, { forceExit,
198198
const nodeOptionsSet = new SafeSet(processNodeOptions);
199199
const unknownProcessExecArgv = ArrayPrototypeFilter(
200200
process.execArgv,
201-
(arg) => !nodeOptionsSet.has(arg),
201+
(arg, i, arr) => !nodeOptionsSet.has(arg) && filterExecArgv(arg, i, arr),
202202
);
203203
ArrayPrototypePushApply(runArgs, unknownProcessExecArgv);
204204

0 commit comments

Comments
 (0)