]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: increase default cmd/go test timeout
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 15 Dec 2017 01:49:04 +0000 (01:49 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 15 Dec 2017 02:48:35 +0000 (02:48 +0000)
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 <iant@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/dist/test.go

index 808439439b521a7b17ce76a0a984551dbe6cbee7..f040d4e3f609e60c6be5a004503bea788cf76d5c 100644 (file)
@@ -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 {