File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,15 @@ type exitCoder interface {
5555// runTests runs the tests for a given package and returns the path to the output file.
5656func (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
5958 if r .UseRace {
6059 args = append (args , "-race" )
6160 }
6261 if len (r .SkipTests ) > 0 {
6362 skipPattern := strings .Join (r .SkipTests , "|" )
6463 args = append (args , fmt .Sprintf ("-skip=%s" , skipPattern ))
6564 }
65+ // The last arg redirects stderr to null
66+ args = append (args , "2>/dev/null" )
6667
6768 if r .Verbose {
6869 log .Printf ("Running command: go %s\n " , strings .Join (args , " " ))
You can’t perform that action at this time.
0 commit comments