Commit 5fe2582
test_runner: add env option to run function
Support an `env` option that is passed to the underlying child_process.
Fixes: #60709
PR-URL: #61367
Reviewed-By: Aviv Keller <me@aviv.sh>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>1 parent 6993386 commit 5fe2582Copy full SHA for 5fe2582
4 files changed
+47-1Lines changed: 47 additions & 1 deletion
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- doc/api
- lib/internal/test_runner
- test
- fixtures/test-runner
- parallel
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+6Lines changed: 6 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1435 | 1435 | |
1436 | 1436 | |
1437 | 1437 | |
| 1438 | + |
| 1439 | + |
| 1440 | + |
1438 | 1441 | |
1439 | 1442 | |
1440 | 1443 | |
| ||
1555 | 1558 | |
1556 | 1559 | |
1557 | 1560 | |
| 1561 | + |
| 1562 | + |
| 1563 | + |
1558 | 1564 | |
1559 | 1565 | |
1560 | 1566 | |
|
Collapse file
lib/internal/test_runner/runner.js
Copy file name to clipboardExpand all lines: lib/internal/test_runner/runner.js+11-1Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
403 | 403 | |
404 | 404 | |
405 | 405 | |
406 | | - |
| 406 | + |
407 | 407 | |
408 | 408 | |
409 | 409 | |
| ||
623 | 623 | |
624 | 624 | |
625 | 625 | |
| 626 | + |
626 | 627 | |
627 | 628 | |
628 | 629 | |
| ||
731 | 732 | |
732 | 733 | |
733 | 734 | |
| 735 | + |
| 736 | + |
| 737 | + |
| 738 | + |
| 739 | + |
| 740 | + |
| 741 | + |
| 742 | + |
734 | 743 | |
735 | 744 | |
736 | 745 | |
| ||
776 | 785 | |
777 | 786 | |
778 | 787 | |
| 788 | + |
779 | 789 | |
780 | 790 | |
781 | 791 | |
|
Collapse file
test/fixtures/test-runner/process-env.js
Copy file name to clipboard+7Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
Collapse file
test/parallel/test-runner-run.mjs
Copy file name to clipboardExpand all lines: test/parallel/test-runner-run.mjs+23Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
650 | 650 | |
651 | 651 | |
652 | 652 | |
| 653 | + |
| 654 | + |
| 655 | + |
| 656 | + |
| 657 | + |
| 658 | + |
| 659 | + |
| 660 | + |
| 661 | + |
| 662 | + |
| 663 | + |
| 664 | + |
| 665 | + |
| 666 | + |
| 667 | + |
| 668 | + |
| 669 | + |
| 670 | + |
| 671 | + |
| 672 | + |
| 673 | + |
| 674 | + |
| 675 | + |
653 | 676 | |
654 | 677 | |
655 | 678 | |
|
0 commit comments