nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 44 lines 1.6 kB view raw
1diff --git a/tests/unit/serve_test.ts b/tests/unit/serve_test.ts 2index 6373fbb3a..2b43226f6 100644 3--- a/tests/unit/serve_test.ts 4+++ b/tests/unit/serve_test.ts 5@@ -4218,7 +4218,7 @@ Deno.test( 6 }, 7 ); 8 await promise; 9- const e = await execCode3("/usr/bin/sh", [ 10+ const e = await execCode3("sh", [ 11 "-c", 12 `curl --stderr - -N --compressed --no-progress-meter http://localhost:${servePort}`, 13 ]); 14diff --git a/tests/unit_node/process_test.ts b/tests/unit_node/process_test.ts 15index fe6f43b3e..29916019a 100644 16--- a/tests/unit_node/process_test.ts 17+++ b/tests/unit_node/process_test.ts 18@@ -509,7 +509,7 @@ Deno.test({ 19 const scriptPath = "./testdata/process_stdin.ts"; 20 const filePath = "./testdata/process_stdin_dummy.txt"; 21 22- const shell = Deno.build.os === "windows" ? "cmd.exe" : "/bin/sh"; 23+ const shell = Deno.build.os === "windows" ? "cmd.exe" : "sh"; 24 const cmd = `"${Deno.execPath()}" run ${scriptPath} < ${filePath}`; 25 const args = Deno.build.os === "windows" ? ["/d", "/c", cmd] : ["-c", cmd]; 26 27@@ -569,7 +569,7 @@ Deno.test({ 28 listener.close(); 29 }); 30 31- const shell = "/bin/bash"; 32+ const shell = "bash"; 33 const cmd = 34 `"${Deno.execPath()}" run ${scriptPath} < /dev/tcp/127.0.0.1/9000`; 35 const args = ["-c", cmd]; 36@@ -620,7 +620,7 @@ Deno.test({ 37 const scriptPath = "./testdata/process_stdin.ts"; 38 const directoryPath = "./testdata/"; 39 40- const shell = "/bin/bash"; 41+ const shell = "bash"; 42 const cmd = `"${Deno.execPath()}" run ${scriptPath} < ${directoryPath}`; 43 const args = ["-c", cmd]; 44