diff --git a/src/main/daemon/repro-13767-shell-ready-marker-lost-to-exec.test.ts b/src/main/daemon/repro-13767-shell-ready-marker-lost-to-exec.test.ts index ea94d132409..0fe347f373e 100644 --- a/src/main/daemon/repro-13767-shell-ready-marker-lost-to-exec.test.ts +++ b/src/main/daemon/repro-13767-shell-ready-marker-lost-to-exec.test.ts @@ -372,10 +372,15 @@ zle -N zle-line-init ) const sqliteTest = hasZsh && existsSync('/usr/bin/sqlite3') ? it : it.skip + // sqlite3 3.54+ defaults to a styled, versioned prompt instead of `sqlite> `. + const sqlitePinnedPrompt = `-cmd ".prompt 'sqlite> '"` sqliteTest( 'does not treat an exec-replaced readline program as the shell prompt', async () => { - const running = await startFixture(zshFixture, 'exec /usr/bin/sqlite3\n') + const running = await startFixture( + zshFixture, + `exec /usr/bin/sqlite3 ${sqlitePinnedPrompt}\n` + ) try { await waitForOutput(running.subscribe, () => running.output().includes('sqlite> ')) await new Promise((resolve) => setTimeout(resolve, 300)) @@ -393,7 +398,7 @@ zle -N zle-line-init async () => { const running = await startFixture( zshFixture, - 'ln -s /usr/bin/sqlite3 "$HOME/zsh" && exec "$HOME/zsh"\n' + `ln -s /usr/bin/sqlite3 "$HOME/zsh" && exec "$HOME/zsh" ${sqlitePinnedPrompt}\n` ) try { await waitForOutput(running.subscribe, () => running.output().includes('sqlite> '))