test: use Git Bash for the Windows wrapper fixture

This commit is contained in:
Adam Perry
2026-06-20 01:00:51 +00:00
committed by Adam Perry @ OpenAI
parent 56b28e765a
commit 7aa66f2d02

View File

@@ -159,9 +159,14 @@ class RunBazelWithBuildBuddyTest(unittest.TestCase):
}
)
bash = "bash"
if os.name == "nt":
bash = str(Path(os.environ["ProgramFiles"]) / "Git" / "bin" / "bash.exe")
self.assertTrue(Path(bash).is_file(), bash)
result = subprocess.run(
[
"bash",
bash,
str(Path(__file__).with_name("run-bazel-ci.sh")),
"--",
"build",