mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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:
1 parent
ff9122c20c
commit
83b91ea6ec
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user