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: https://github.com/nodejs/node/pull/64056
Refs: https://github.com/nodejs/reliability/issues?q=%22test-runner-flag-propagation%22
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
This commit is contained in:
Trivikram Kamat authored and Richard Lau committed 2026-07-03 16:04:52 +00:00
1 parent ff9122c20c
commit 83b91ea6ec
1 file changed
+1 -1
+1 -1
View File
@@ -208,7 +208,7 @@ function getRunArgs(path, { forceExit,
const nodeOptionsSet = new SafeSet(processNodeOptions);
const unknownProcessExecArgv = ArrayPrototypeFilter(
process.execArgv,
(arg) => !nodeOptionsSet.has(arg),
(arg, i, arr) => !nodeOptionsSet.has(arg) && filterExecArgv(arg, i, arr),
);
ArrayPrototypePushApply(runArgs, unknownProcessExecArgv);