1
0
mirror of https://github.com/golang/go synced 2024-11-23 11:00:08 -07:00

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 <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Russ Cox 2016-01-04 15:03:45 -05:00
parent 4b0bc7c3a1
commit 906f979119

View File

@ -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 {