Skip to content

Commit 6e35cb8

Browse files
committed
Fix ld warnings and other errors in runner test results
1 parent f3e38d0 commit 6e35cb8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/flakeguard/runner/runner.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ type exitCoder interface {
9595

9696
// runTests runs the tests for a given package and returns the path to the output file.
9797
func (r *Runner) runTests(packageName string) (string, bool, error) {
98-
args := []string{"test", packageName, "-json", "-count=1"}
98+
args := []string{"test", packageName, "-json", "-count=1", "-ldflags=-w -s"}
9999
if r.UseRace {
100100
args = append(args, "-race")
101101
}
@@ -143,10 +143,8 @@ func (r *Runner) runTests(packageName string) (string, bool, error) {
143143
cmd.Dir = r.ProjectPath
144144
if r.CollectRawOutput {
145145
cmd.Stdout = io.MultiWriter(tmpFile, r.rawOutputs[packageName])
146-
cmd.Stderr = io.MultiWriter(tmpFile, r.rawOutputs[packageName])
147146
} else {
148147
cmd.Stdout = tmpFile
149-
cmd.Stderr = tmpFile
150148
}
151149

152150
err = cmd.Run()

0 commit comments

Comments
 (0)