Commit 3b94e31
Myles Borins
test: robust handling of env for npm-test-install
Currently we are overwriting the entire env object of the child-process
spawned in `npm-test-install`. This commit alternatively clones the
`process.env` object and modifies it with the neccessary changes before
passing it the the spawned process.
Fixes: #6736
PR-URL: #6797
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 6a76485 commit 3b94e31Copy full SHA for 3b94e31
File tree
Expand file treeCollapse file tree
1 file changed
+4
-3
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+4
-3
lines changedOpen diff view settings
Collapse file
test/parallel/test-npm-install.js
Copy file name to clipboardExpand all lines: test/parallel/test-npm-install.js+4-3Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
32 | 32 | |
33 | 33 | |
34 | 34 | |
| 35 | + |
| 36 | + |
| 37 | + |
35 | 38 | |
36 | 39 | |
37 | | - |
38 | | - |
39 | | - |
| 40 | + |
40 | 41 | |
41 | 42 | |
42 | 43 | |
|
0 commit comments