mirror of
https://github.com/golang/go
synced 2024-11-02 08:01:26 +00: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
1 changed files with 5 additions and 1 deletions
|
@ -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 a new issue