mirror of
https://github.com/golang/go
synced 2024-11-21 23:54:40 -07:00
cmd/go: suggest 'go test -i [args to test]'
Fixes #3023. R=rsc CC=golang-dev https://golang.org/cl/5674055
This commit is contained in:
parent
9c1f54c9ed
commit
53d94a7220
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user