diff --git a/src/cmd/go/test.go b/src/cmd/go/test.go index d4a1c50f41..002758c3b1 100644 --- a/src/cmd/go/test.go +++ b/src/cmd/go/test.go @@ -378,7 +378,7 @@ func runTest(cmd *Command, args []string) { a.deps = append(a.deps, b.action(modeInstall, modeInstall, p)) } b.do(a) - if !testC { + if !testC || a.failed { return } b.init()