]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: suggest 'go test -i [args to test]'
authorShenghou Ma <minux.ma@gmail.com>
Wed, 15 Feb 2012 18:26:50 +0000 (13:26 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 15 Feb 2012 18:26:50 +0000 (13:26 -0500)
        Fixes #3023.

R=rsc
CC=golang-dev
https://golang.org/cl/5674055

src/cmd/go/test.go

index 8c88ea0b02260df39cb81e7ea1e260375d509f89..56df526e7453617e48832ecb992cae455b9df710 100644 (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)