summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2012-02-15 13:26:50 -0500
committerShenghou Ma <minux.ma@gmail.com>2012-02-15 13:26:50 -0500
commit080ae24645a8d490fd09ebba6fbc78a6fcdc7136 (patch)
tree90de043f9ecf94e100eb9f5af04b0a262f9bec7b
parentf57f0de2916fb77dd768da99c948c322d7c4f822 (diff)
downloadgo-080ae24645a8d490fd09ebba6fbc78a6fcdc7136.tar.gz
cmd/go: suggest 'go test -i [args to test]'
Fixes issue 3023. R=rsc CC=golang-dev http://codereview.appspot.com/5674055 Committer: Russ Cox <rsc@golang.org>
-rw-r--r--src/cmd/go/test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cmd/go/test.go b/src/cmd/go/test.go
index 8c88ea0b0..56df526e7 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)