From: David Crawshaw Date: Sat, 11 Apr 2015 23:41:26 +0000 (-0400) Subject: cmd/go: run darwin/arm64 tests sequentially X-Git-Tag: go1.5beta1~1149 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2ce82c6c65ce07f85523a05ec7cf94332e496452;p=gostls13.git cmd/go: run darwin/arm64 tests sequentially 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 --- diff --git a/src/cmd/go/build.go b/src/cmd/go/build.go index 6b1cd921f7..e9347525a6 100644 --- a/src/cmd/go/build.go +++ b/src/cmd/go/build.go @@ -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 + } } }