Commit f12fe6e
Krsna Suraj
test_runner: capture process state in entry point instead of runner
The run() function in the test runner was directly accessing process.execArgv,
process.cwd(), and process.env to configure child processes. This is
problematic because run() is part of the public API and should not depend
on ambient process state.
This commit moves those reads to the CLI entry point (test_runner.js) and
passes them as explicit options to run():
- main/test_runner.js: capture process.execArgv, process.env, process.cwd()
- runner.js getRunArgs(): use execArgv parameter instead of process.execArgv
- runner.js run(): default execArgv to process.execArgv for backward compat
Refs: #538671 parent 7c53fb5 commit f12fe6e
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
209 | 210 | | |
210 | | - | |
| 211 | + | |
211 | 212 | | |
212 | 213 | | |
213 | 214 | | |
| |||
0 commit comments