Commit 53d94a72 authored by Shenghou Ma's avatar Shenghou Ma Committed by Russ Cox

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

        Fixes #3023.

R=rsc
CC=golang-dev
https://golang.org/cl/5674055
parent 9c1f54c9
...@@ -357,7 +357,11 @@ func runTest(cmd *Command, args []string) { ...@@ -357,7 +357,11 @@ func runTest(cmd *Command, args []string) {
} }
} }
if warned { 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) b.do(root)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment