mirror of
https://github.com/openai/codex.git
synced 2026-09-10 20:26:47 +00:00
test: use Git Bash for the Windows wrapper fixture
This commit is contained in:
committed by
Adam Perry @ OpenAI
parent
56b28e765a
commit
7aa66f2d02
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user