Skip to content

Commit 5d38e17

Browse files
committed
fix(test): use system bash for release reuse fixtures
1 parent ec0c41f commit 5d38e17

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎test/scripts/find-reusable-release-validation.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import { afterAll, afterEach, describe, expect, it } from "vitest";
88
import { createTempDirTracker } from "../helpers/temp-dir.js";
99

1010
const SCRIPT_PATH = join(process.cwd(), "scripts/github/find-reusable-release-validation.sh");
11+
// Homebrew Bash 5.3 can deadlock in nested command substitutions under Node's
12+
// synchronous child runner on macOS; CI executes this script with system Bash.
13+
const BASH_PATH = process.platform === "darwin" ? "/bin/bash" : "bash";
1114
const tempDirs = createTempDirTracker();
1215
const sharedTempDirs = createTempDirTracker();
1316

@@ -472,7 +475,7 @@ function runResolver(args: {
472475
);
473476
}
474477
return spawnSync(
475-
"bash",
478+
BASH_PATH,
476479
[
477480
SCRIPT_PATH,
478481
"--target-sha",

0 commit comments

Comments
 (0)