]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix `go test -n`
authorNodir Turakulov <nodir@google.com>
Mon, 5 Oct 2015 23:47:31 +0000 (16:47 -0700)
committerAndrew Gerrand <adg@golang.org>
Wed, 7 Oct 2015 01:12:42 +0000 (01:12 +0000)
commit0b248cea169a261cd0c2db8c014269cca5a170c4
treeb42ba0ebe0e23700c4f0fc47d8fb40cf0ca56812
parent7c43975aceebcac6813696787d3b0fa19c83e74d
cmd/go: fix `go test -n`

The <importPath>/_test directory is not actually created in -n mode, so
`go test` fails to write _testmain.go.

Do not write _testmain.go if -n is passed.

Change-Id: I825d5040cacbc9d9a8c89443e5a3f83e6f210ce4
Reviewed-on: https://go-review.googlesource.com/15433
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/cmd/go/test.go