Commit 0a517e45 authored by Shenghou Ma's avatar Shenghou Ma

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://golang.org/cl/7621050
parent a3c2d62a
...@@ -35,16 +35,20 @@ fi ...@@ -35,16 +35,20 @@ fi
# at least runtime/debug test will fail. # at least runtime/debug test will fail.
unset GOROOT_FINAL 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.' echo '# Testing packages.'
time go test std -short -timeout=120s time go test std -short -timeout=$(expr 120 \* $timeout_scale)s
echo echo
echo '# GOMAXPROCS=2 runtime -cpu=1,2,4' 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
echo '# sync -cpu=10' 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, # Race detector only supported on Linux and OS X,
# and only on amd64, and only when cgo is enabled. # and only on amd64, and only when cgo is enabled.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment