diff --git a/src/test/py/bazel/bazel_windows_test.py b/src/test/py/bazel/bazel_windows_test.py index 2f7f246d3b7b0a..f69f09d28ac140 100644 --- a/src/test/py/bazel/bazel_windows_test.py +++ b/src/test/py/bazel/bazel_windows_test.py @@ -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()