Skip to content

Commit afb758f

Browse files
committed
Change test to drive chpwd hook with bash, not zsh
CI Ubuntu runners ship without zsh, so the integration test failed with `NotFound: Failed to spawn 'zsh'`. This changes the new test to rely on bash.
1 parent 9ca511f commit afb758f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/shellcode().test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import shellcode, { datadir } from "./shellcode().ts";
44

55
// Issue #51: cd-ing directly into a subdir of an already-activated devenv
66
// must activate the devenv (and not emit `permission denied`). This drives
7-
// the generated shellcode through a real zsh subprocess with a fake `dev`
7+
// the generated shellcode through a real bash subprocess with a fake `dev`
88
// on PATH so we can assert how the chpwd hook invokes it.
99
Deno.test("chpwd hook activates when cd-ing into subdir of devenv (#51)", async () => {
1010
const tmp = Path.mktemp();
@@ -32,7 +32,7 @@ Deno.test("chpwd hook activates when cd-ing into subdir of devenv (#51)", async
3232
XDG_DATA_HOME: xdg.string,
3333
};
3434

35-
const proc = await new Deno.Command("zsh", {
35+
const proc = await new Deno.Command("bash", {
3636
args: ["-c", `${shellcode(env)}\ncd "${sub}"`],
3737
env,
3838
stdout: "piped",

0 commit comments

Comments
 (0)