From 53d94a7220aa2ff67f29621dc6fd7d450e945229 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Wed, 15 Feb 2012 13:26:50 -0500 Subject: [PATCH] cmd/go: suggest 'go test -i [args to test]' Fixes #3023. R=rsc CC=golang-dev https://golang.org/cl/5674055 --- src/cmd/go/test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cmd/go/test.go b/src/cmd/go/test.go index 8c88ea0b022..56df526e745 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)