Skip to content

Commit

Permalink
Fix running Bazel from cmd.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Nov 22, 2024
1 parent 90023d2 commit 3262743
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/test/py/bazel/bazel_windows_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,20 @@ def testMakeVariableForDumpbinExecutable(self):
self.assertTrue(os.path.exists(dumpbin_out))
self.AssertFileContentContains(dumpbin_out, 'windows_dllexport_test')

def testRunBazelFromCmd(self):
self.ScratchFile(
'BUILD',
[
'genrule(',
' name = "gen",',
' outs = ["hello"],',
' cmd = "echo hello > $@",',
')',
],
)

self.RunProgram(['cmd', '/c', 'bazel', 'build', '//:gen'])


if __name__ == '__main__':
absltest.main()

0 comments on commit 3262743

Please sign in to comment.