Commit 2717a31
committed
test: pass processExecArgv to run() instead of reading process.execArgv directly
Captures process.execArgv at the CLI entry point (main/test_runner.js)
and passes it through as an explicit option to run(). This removes
direct reads of process.execArgv and process.argv inside getRunArgs()
in the test runner.
Changes:
- Add processExecArgv option to run() (defaults to process.execArgv
for backward compatibility)
- Pass processExecArgv from main/test_runner.js to run()
- Replace process.execArgv read in getRunArgs() with the passed option
- Replace process.argv read in getRunArgs() with globPatterns
Refs: #53867
Signed-off-by: AliMahmoudDev <123aliactionx5@gmail.com>1 parent 73c592b commit 2717a31
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
190 | 192 | | |
191 | 193 | | |
192 | 194 | | |
| |||
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
208 | | - | |
| 210 | + | |
209 | 211 | | |
210 | 212 | | |
211 | 213 | | |
| |||
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
248 | | - | |
| 250 | + | |
249 | 251 | | |
250 | 252 | | |
251 | 253 | | |
| |||
723 | 725 | | |
724 | 726 | | |
725 | 727 | | |
| 728 | + | |
726 | 729 | | |
727 | 730 | | |
728 | 731 | | |
| |||
981 | 984 | | |
982 | 985 | | |
983 | 986 | | |
| 987 | + | |
984 | 988 | | |
985 | 989 | | |
986 | 990 | | |
| |||
0 commit comments