Index: src/cmd/go/test.go |
=================================================================== |
--- a/src/cmd/go/test.go |
+++ b/src/cmd/go/test.go |
@@ -379,7 +379,11 @@ |
if args != "" { |
args = " " + args |
} |
- fmt.Fprintf(os.Stderr, "installing these packages with 'go test -i%s' will speed future tests.\n\n", args) |
+ var race string |
+ if buildRace { |
+ race = " -race" |
+ } |
+ fmt.Fprintf(os.Stderr, "installing these packages with 'go test -i%s%s' will speed future tests.\n\n", race, args) |
} |
b.do(root) |