From 906f97911951c5e33b8290a88a3badc1b328dae8 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 4 Jan 2016 15:03:45 -0500 Subject: [PATCH] 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 --- src/cmd/dist/test.go | 3 --- 1 file changed, 3 deletions(-) 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 { -- 2.50.0