From 5b318964722d1e4a10000861f47941332a8bb172 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Mon, 5 Oct 2026 21:17:23 +0200 Subject: [PATCH] fix(env): login shell test works when the account shell is zsh --- packages/env/test/ssh.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/env/test/ssh.test.ts b/packages/env/test/ssh.test.ts index 1f432b1f0..ab99c5412 100644 --- a/packages/env/test/ssh.test.ts +++ b/packages/env/test/ssh.test.ts @@ -184,7 +184,9 @@ describe.skipIf(sshd === undefined)("SSH bootstrap", () => { }, 60_000); it("starts the daemon through the login shell only when asked", async () => { + // The login shell is the account's shell: sh and bash read .profile, zsh (the macOS default) reads .zprofile. writeFileSync(join(home, ".profile"), "export PI_ENV_LOGIN=yes\n"); + writeFileSync(join(home, ".zprofile"), "export PI_ENV_LOGIN=yes\n"); const login = async (loginShell: boolean) => { const { connection } = await connectSsh({ ...target, binary: daemon, loginShell }); try {