cmd/go: suggest 'go test -i [args to test]'

Fixes #3023.

R=rsc
CC=golang-dev
https://golang.org/cl/5674055
This commit is contained in:
Shenghou Ma 2012-02-15 13:26:50 -05:00 committed by Russ Cox
parent 9c1f54c9ed
commit 53d94a7220

View file

@ -357,7 +357,11 @@ func runTest(cmd *Command, args []string) {
}
}
if warned {
fmt.Fprintf(os.Stderr, "installing these packages with 'go test -i' will speed future tests.\n\n")
args := strings.Join(pkgArgs, " ")
if args != "" {
args = " " + args
}
fmt.Fprintf(os.Stderr, "installing these packages with 'go test -i%s' will speed future tests.\n\n", args)
}
b.do(root)