Skip to content

Commit 83b91ea

Browse files
trivikrrichardlau
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 <16024985+trivikr@users.noreply.github.com> 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 <panva.ip@gmail.com>
1 parent ff9122c commit 83b91ea

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
@@ -208,7 +208,7 @@ function getRunArgs(path, { forceExit,
208208
const nodeOptionsSet = new SafeSet(processNodeOptions);
209209
const unknownProcessExecArgv = ArrayPrototypeFilter(
210210
process.execArgv,
211-
(arg) => !nodeOptionsSet.has(arg),
211+
(arg, i, arr) => !nodeOptionsSet.has(arg) && filterExecArgv(arg, i, arr),
212212
);
213213
ArrayPrototypePushApply(runArgs, unknownProcessExecArgv);
214214

0 commit comments

Comments
 (0)