Skip to content

Commit 75f3df7

Browse files
committed
fixup! use bowi
1 parent b68448a commit 75f3df7

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

go/tools/bazel_testing/bazel_testing.go

+1-11
Original file line numberDiff line numberDiff line change
@@ -206,17 +206,7 @@ func RunBazel(args ...string) error {
206206
// If the command starts but exits with a non-zero status, a *StderrExitError
207207
// will be returned which wraps the original *exec.ExitError.
208208
func BazelOutput(args ...string) ([]byte, error) {
209-
cmd := BazelCmd(args...)
210-
stdout := &bytes.Buffer{}
211-
stderr := &bytes.Buffer{}
212-
cmd.Stdout = stdout
213-
cmd.Stderr = stderr
214-
err := cmd.Run()
215-
if eErr, ok := err.(*exec.ExitError); ok {
216-
eErr.Stderr = stderr.Bytes()
217-
err = &StderrExitError{Err: eErr}
218-
}
219-
return stdout.Bytes(), err
209+
return BazelOutputWithInput(nil, args...)
220210
}
221211

222212
// BazelOutputWithInput invokes a bazel command with a list of arguments and

0 commit comments

Comments
 (0)