Skip to content

Commit 62d0b90

Browse files
committed
flakeguard: Redirect stderr to null when running tests
1 parent e2e0350 commit 62d0b90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/flakeguard/runner/runner.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ type exitCoder interface {
5555
// runTests runs the tests for a given package and returns the path to the output file.
5656
func (r *Runner) runTests(packageName string) (string, bool, error) {
5757
args := []string{"test", packageName, "-json", "-count=1"} // Enable JSON output
58+
args = append(args, "2>/dev/null") // Redirect stderr to null
5859
if r.UseRace {
5960
args = append(args, "-race")
6061
}

0 commit comments

Comments
 (0)