From: Shenghou Ma Date: Wed, 15 Feb 2012 18:26:50 +0000 (-0500) Subject: cmd/go: suggest 'go test -i [args to test]' X-Git-Tag: weekly.2012-02-22~222 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=53d94a7220aa2ff67f29621dc6fd7d450e945229;p=gostls13.git cmd/go: suggest 'go test -i [args to test]' Fixes #3023. R=rsc CC=golang-dev https://golang.org/cl/5674055 --- diff --git a/src/cmd/go/test.go b/src/cmd/go/test.go index 8c88ea0b02..56df526e74 100644 --- a/src/cmd/go/test.go +++ b/src/cmd/go/test.go @@ -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)