]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: adjust default timeout scale for mips
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 1 Dec 2016 23:27:25 +0000 (23:27 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 1 Dec 2016 23:46:14 +0000 (23:46 +0000)
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>
src/cmd/dist/test.go

index 508863f275703d316f551cd1205be9ab22961e31..c39646992e0e18774da7d7edbba889c483d0f52e 100644 (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)