summaryrefslogtreecommitdiffstats
path: root/pkgs/development/web/nodejs/use-correct-env-in-tests.patch
blob: 070d0e1ddfc3447fdcb0895e11207250e15f6aaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
`/usr/bin/env` is not available.

--- old/test/parallel/test-child-process-default-options.js
+++ new/test/parallel/test-child-process-default-options.js
@@ -35 +35 @@ if (isWindows) {
-  child = spawn('/usr/bin/env', [], {});
+  child = spawn('env', [], {});
--- old/test/parallel/test-child-process-env.js
+++ new/test/parallel/test-child-process-env.js
@@ -51 +51 @@ if (isWindows) {
-  child = spawn('/usr/bin/env', [], { env });
+  child = spawn('env', [], { env });
--- old/test/parallel/test-child-process-exec-env.js
+++ new/test/parallel/test-child-process-exec-env.js
@@ -47 +47 @@ if (!isWindows) {
-  child = exec('/usr/bin/env', { env: { 'HELLO': 'WORLD' } }, after);
+  child = exec('env', { env: { 'HELLO': 'WORLD' } }, after);