Skip to content

Commit

Permalink
fixup! use bowi
Browse files Browse the repository at this point in the history
  • Loading branch information
JamyDev authored and fmeum committed Nov 9, 2023
1 parent a8d3799 commit f1fe653
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions go/tools/bazel_testing/bazel_testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,17 +206,7 @@ func RunBazel(args ...string) error {
// If the command starts but exits with a non-zero status, a *StderrExitError
// will be returned which wraps the original *exec.ExitError.
func BazelOutput(args ...string) ([]byte, error) {
cmd := BazelCmd(args...)
stdout := &bytes.Buffer{}
stderr := &bytes.Buffer{}
cmd.Stdout = stdout
cmd.Stderr = stderr
err := cmd.Run()
if eErr, ok := err.(*exec.ExitError); ok {
eErr.Stderr = stderr.Bytes()
err = &StderrExitError{Err: eErr}
}
return stdout.Bytes(), err
return BazelOutputWithInput(nil, args...)
}

// BazelOutputWithInput invokes a bazel command with a list of arguments and
Expand Down

0 comments on commit f1fe653

Please sign in to comment.