Skip to content

Commit

Permalink
Windows: Make bazel run --script_path work on Windows
Browse files Browse the repository at this point in the history
    --script_path should write a batch file instead of bash file on Windows.

    Related: bazelbuild/bazel-watcher#144
    (ibazel uses --script_path)

    RELNOTES: None
    PiperOrigin-RevId: 218828314
  • Loading branch information
Luca Di Grazia committed Sep 4, 2022
1 parent f42ec28 commit 31910ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ public BlazeCommandResult exec(CommandEnvironment env, OptionsParsingResult opti

private boolean prepareTestEnvironment(CommandEnvironment env, TestRunnerAction action) {
try {
action.prepare(env.getExecRoot());
action.prepare(env.getRuntime().getFileSystem(), env.getExecRoot());
return true;
} catch (IOException e) {
env.getReporter().handle(Event.error("Error while setting up test: " + e.getMessage()));
Expand Down

0 comments on commit 31910ac

Please sign in to comment.