]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: run darwin/arm64 tests sequentially
authorDavid Crawshaw <crawshaw@golang.org>
Sat, 11 Apr 2015 23:41:26 +0000 (19:41 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Mon, 13 Apr 2015 11:57:34 +0000 (11:57 +0000)
Just like darwin/arm, the test devices can only install and execute
a single app at a time.

Change-Id: I74e6130ef83537c465b4585a366d02953fd907bf
Reviewed-on: https://go-review.googlesource.com/8827
Reviewed-by: Minux Ma <minux@golang.org>
src/cmd/go/build.go

index 6b1cd921f770f909f558d6b0a6e00dc06e87ea47..e9347525a6235567f8f357ebbff220c3142a0db6 100644 (file)
@@ -127,12 +127,15 @@ func init() {
        addBuildFlags(cmdBuild)
        addBuildFlags(cmdInstall)
 
-       if buildContext.GOOS == "darwin" && buildContext.GOARCH == "arm" {
-               // darwin/arm cannot run multiple tests simultaneously.
-               // Parallelism is limited in go_darwin_arm_exec, but
-               // also needs to be limited here so go test std does not
-               // timeout tests that waiting to run.
-               buildP = 1
+       if buildContext.GOOS == "darwin" {
+               switch buildContext.GOARCH {
+               case "arm", "arm64":
+                       // darwin/arm cannot run multiple tests simultaneously.
+                       // Parallelism is limited in go_darwin_arm_exec, but
+                       // also needs to be limited here so go test std does not
+                       // timeout tests that waiting to run.
+                       buildP = 1
+               }
        }
 }