]> Cypherpunks repositories - gostls13.git/commitdiff
build: give freebsd longer to run tests
authorAndrew Gerrand <adg@golang.org>
Tue, 23 Dec 2014 01:09:38 +0000 (12:09 +1100)
committerAndrew Gerrand <adg@golang.org>
Tue, 23 Dec 2014 04:19:41 +0000 (04:19 +0000)
The freebsd-386 and freebsd-amd64 builders are timing out sometimes.
This will give them some more breathing room.

Change-Id: Ib65bd172cca046a52861759a4232d7b4b6514fa8
Reviewed-on: https://go-review.googlesource.com/1994
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/run.bash

index 8da06d6803f54a153a1c30f40d57156feed1f971..dbd3ddb6afcb49f58f44710e8981a9c97f3630b2 100755 (executable)
@@ -47,8 +47,12 @@ fi
 # at least runtime/debug test will fail.
 unset GOROOT_FINAL
 
-# increase timeout for ARM up to 3 times the normal value
+# TODO(adg): create an environment variable and to permit the builders to
+# specify the timeout scale.
 timeout_scale=1
+# the freebsd-* builders are slow, and there's no easy way to make them faster.
+[ "$GOOS" == "freebsd" ] && timeout_scale=2
+# increase timeout for ARM up to 3 times the normal value
 [ "$GOARCH" == "arm" ] && timeout_scale=3
 
 echo '##### Testing packages.'