]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: set timeout for go1 benchmark too
authorShenghou Ma <minux@golang.org>
Fri, 13 Nov 2015 01:05:06 +0000 (20:05 -0500)
committerMinux Ma <minux@golang.org>
Fri, 13 Nov 2015 02:34:53 +0000 (02:34 +0000)
so that GO_TEST_TIMEOUT_SCALE can be applied too.
It's for the mips64 builder, which is so slow that the
go1 benchmark can't finish startup within 10 minutes.

Change-Id: I1b824eb0649460101b294fb442da784e872403e7
Reviewed-on: https://go-review.googlesource.com/16901
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/dist/test.go

index d699636c15af3e9de8a3ccac8b19ddbf7cee5eb6..77f7216b257caf88eda2cb8b9b6c588b938b6cc0 100644 (file)
@@ -463,7 +463,7 @@ func (t *tester) registerTests() {
                }
        }
        if t.goos != "android" && !t.iOS() {
-               t.registerTest("bench_go1", "../test/bench/go1", "go", "test")
+               t.registerTest("bench_go1", "../test/bench/go1", "go", "test", t.timeout(600))
        }
        if t.goos != "android" && !t.iOS() {
                const nShards = 5