mirror of https://github.com/golang/go.git
cmd/go: show -race if necessary when giving "go test -i" hint
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/6851100
This commit is contained in:
parent
e126763045
commit
f142deee95
|
|
@ -379,7 +379,11 @@ func runTest(cmd *Command, args []string) {
|
||||||
if args != "" {
|
if args != "" {
|
||||||
args = " " + args
|
args = " " + args
|
||||||
}
|
}
|
||||||
fmt.Fprintf(os.Stderr, "installing these packages with 'go test -i%s' will speed future tests.\n\n", args)
|
extraOpts := ""
|
||||||
|
if buildRace {
|
||||||
|
extraOpts = "-race "
|
||||||
|
}
|
||||||
|
fmt.Fprintf(os.Stderr, "installing these packages with 'go test %s-i%s' will speed future tests.\n\n", extraOpts, args)
|
||||||
}
|
}
|
||||||
|
|
||||||
b.do(root)
|
b.do(root)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue