Skip to content

Commit 7857ad9

Browse files
committed
test: detach self-host shell probes from terminals
1 parent ef47e39 commit 7857ad9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

local/scripts/selfhost-shell.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import { spawnSync } from "node:child_process";
33
import { describe, expect, it } from "vitest";
44

55
const publicRoot = path.resolve(__dirname, "../..");
6-
const BASH_NON_INTERACTIVE_COMMAND =
7-
"if command -v setsid >/dev/null 2>&1; then exec setsid \"$BASH\" -s; fi; exec \"$BASH\" -s";
6+
const BASH_NON_INTERACTIVE_COMMAND = "exec \"$BASH\" -s";
87

98
function runBash(script: string) {
109
return spawnSync("bash", ["-lc", BASH_NON_INTERACTIVE_COMMAND], {
1110
cwd: publicRoot,
1211
encoding: "utf8",
1312
input: script,
1413
timeout: 30_000,
14+
detached: true,
1515
env: {
1616
...process.env,
1717
LC_ALL: "C.UTF-8",

0 commit comments

Comments
 (0)