1
0
mirror of https://github.com/golang/go synced 2024-11-18 05:04:47 -07:00

cmd/dist: adjust default timeout scale for mips

Per recommendation from imgtec.com folk.

Change-Id: I9b6f30572f257acce59842ac55362f52fe36c5ab
Reviewed-on: https://go-review.googlesource.com/33804
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Brad Fitzpatrick 2016-12-01 23:27:25 +00:00
parent fd483b6f62
commit 7736cbafd9

View File

@ -152,8 +152,11 @@ func (t *tester) run() {
}
t.timeoutScale = 1
if t.goarch == "arm" || t.goos == "windows" {
switch t.goarch {
case "arm", "windows":
t.timeoutScale = 2
case "mips", "mipsle", "mips64", "mips64le":
t.timeoutScale = 4
}
if s := os.Getenv("GO_TEST_TIMEOUT_SCALE"); s != "" {
t.timeoutScale, err = strconv.Atoi(s)