summaryrefslogtreecommitdiff
path: root/src/run.bash
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2013-03-24 16:31:28 +0800
committerShenghou Ma <minux.ma@gmail.com>2013-03-24 16:31:28 +0800
commit99b33b12a31d70ddd2b70fe638801e872c39219b (patch)
tree8ef560d8a986fbb73b57a0c557b2c3fcb6361385 /src/run.bash
parentaa60e519f49c7bfe6341cbdd85bee1476e999b4b (diff)
downloadgo-99b33b12a31d70ddd2b70fe638801e872c39219b.tar.gz
build: increase timeout for ARM
in an effort to make builder freebsd-arm-pi and netbsd-arm-qemu pass again. R=golang-dev, r CC=golang-dev https://codereview.appspot.com/7621050
Diffstat (limited to 'src/run.bash')
-rwxr-xr-xsrc/run.bash10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/run.bash b/src/run.bash
index 538d4f6fe..5f0af5f3f 100755
--- a/src/run.bash
+++ b/src/run.bash
@@ -35,16 +35,20 @@ fi
# at least runtime/debug test will fail.
unset GOROOT_FINAL
+# increase timeout for ARM up to 3 times the normal value
+timeout_scale=1
+[ "$GOARCH" == "arm" ] && timeout_scale=3
+
echo '# Testing packages.'
-time go test std -short -timeout=120s
+time go test std -short -timeout=$(expr 120 \* $timeout_scale)s
echo
echo '# GOMAXPROCS=2 runtime -cpu=1,2,4'
-GOMAXPROCS=2 go test runtime -short -timeout=240s -cpu=1,2,4
+GOMAXPROCS=2 go test runtime -short -timeout=$(expr 240 \* $timeout_scale)s -cpu=1,2,4
echo
echo '# sync -cpu=10'
-go test sync -short -timeout=120s -cpu=10
+go test sync -short -timeout=$(expr 120 \* $timeout_scale)s -cpu=10
# Race detector only supported on Linux and OS X,
# and only on amd64, and only when cgo is enabled.