From: Brad Fitzpatrick Date: Fri, 15 Dec 2017 01:49:04 +0000 (+0000) Subject: cmd/dist: increase default cmd/go test timeout X-Git-Tag: go1.10beta2~101 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9d5f8eaa8a4207bd89926eae40c6b0edf7bd4d11;p=gostls13.git cmd/dist: increase default cmd/go test timeout cmd/go has grown slow, even in short mode, and it's now regularly failing on a number of builders where it's taking over the previous 3 minute timeout. for now, give it more time. Change-Id: If565baf71c2770880b2e2139b47e03433951331f Reviewed-on: https://go-review.googlesource.com/84235 Reviewed-by: Ian Lance Taylor Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index 808439439b..f040d4e3f6 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -265,6 +265,10 @@ func (t *tester) registerStdTest(pkg string) { if t.runRx == nil || t.runRx.MatchString(testName) == t.runRxWant { stdMatches = append(stdMatches, pkg) } + timeoutSec := 180 + if pkg == "cmd/go" { + timeoutSec *= 2 + } t.tests = append(t.tests, distTest{ name: testName, heading: "Testing packages.", @@ -280,7 +284,7 @@ func (t *tester) registerStdTest(pkg string) { "test", "-short", t.tags(), - t.timeout(180), + t.timeout(timeoutSec), "-gcflags=all=" + gogcflags, } if t.race {