Skip to content

Commit

Permalink
bazci: fix issue posting
Browse files Browse the repository at this point in the history
This block got accidentally deleted in
`61161542c910d82c86e4c8ccb6fd2946bba9ab8d`.

Release note: None
Epic: None
  • Loading branch information
rickystewart committed Nov 1, 2022
1 parent c25a0dc commit c5746a3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkg/cmd/bazci/bazci.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,19 @@ func bazciImpl(cmd *cobra.Command, args []string) (retErr error) {
return
}
args = append(args, fmt.Sprintf("--bes_backend=grpc://127.0.0.1:%d", port))
if shouldProcessTestFailures {
f, createTempErr := os.CreateTemp(artifactsDir, "test.json.txt")
if createTempErr != nil {
retErr = createTempErr
return
}
goTestJSONOutputFilePath = f.Name()
// Closing the file because we will not use the file pointer.
if retErr = f.Close(); retErr != nil {
return
}
args = append(args, "--test_env", goTestJSONOutputFilePath)
}
fmt.Println("running bazel w/ args: ", shellescape.QuoteCommand(args))
bazelCmd := exec.Command("bazel", args...)
bazelCmd.Stdout = os.Stdout
Expand Down

0 comments on commit c5746a3

Please sign in to comment.