Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 24 lines 1.2 kB view raw
1`/usr/bin/env` is not available. 2 3--- old/test/common/assertSnapshot.js 4+++ new/test/common/assertSnapshot.js 5@@ -81,2 +81,2 @@ async function spawnAndAssert(filename, transform = (x) => x, { tty = false, ... 6- const executable = tty ? 'tools/pseudo-tty.py' : process.execPath; 7- const args = tty ? [process.execPath, ...flags, filename] : [...flags, filename]; 8+ const executable = tty ? 'python3' : process.execPath; 9+ const args = tty ? ['tools/pseudo-tty.py', process.execPath, ...flags, filename] : [...flags, filename]; 10--- old/test/parallel/test-child-process-default-options.js 11+++ new/test/parallel/test-child-process-default-options.js 12@@ -35 +35 @@ if (isWindows) { 13- child = spawn('/usr/bin/env', [], {}); 14+ child = spawn('env', [], {}); 15--- old/test/parallel/test-child-process-env.js 16+++ new/test/parallel/test-child-process-env.js 17@@ -51 +51 @@ if (isWindows) { 18- child = spawn('/usr/bin/env', [], { env }); 19+ child = spawn('env', [], { env }); 20--- old/test/parallel/test-child-process-exec-env.js 21+++ new/test/parallel/test-child-process-exec-env.js 22@@ -47 +47 @@ if (!isWindows) { 23- child = exec('/usr/bin/env', { env: { 'HELLO': 'WORLD' } }, after); 24+ child = exec('env', { env: { 'HELLO': 'WORLD' } }, after);