Reviewers: golang-dev_googlegroups.com,
Message:
Hello golang-dev@googlegroups.com,
I'd like you to review this change to
https://code.google.com/p/go
Description:
cmd/go: say how to speed up tests when -race is specified
Please review this at http://codereview.appspot.com/6856096/
Affected files:
M src/cmd/go/test.go
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)