From: Russ Cox Date: Mon, 4 Jan 2016 20:03:45 +0000 (-0500) Subject: cmd/dist: wait for pending tests before exiting X-Git-Tag: go1.6beta2~158 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=906f97911951c5e33b8290a88a3badc1b328dae8;p=gostls13.git cmd/dist: wait for pending tests before exiting When 'go tool dist test' stops, it was intended that it first wait for pending background tests, like a failed compilation waits for pending background compiles. But these three lines prevented that. Fix by deleting them. (The actual loop already contains the correct logic to avoid running the others and to wait for what's left.) Change-Id: I4e945495ada903fb0af567910626241bc1c52ba6 Reviewed-on: https://go-review.googlesource.com/18232 Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index eb99103f7f..eeec7e3a9d 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -844,9 +844,6 @@ func (t *tester) runPending(nextTest *distTest) { if w.err != nil { log.Printf("Failed: %v", w.err) t.failed = true - if !t.keepGoing { - break - } } } if t.failed && !t.keepGoing {