From 2ce82c6c65ce07f85523a05ec7cf94332e496452 Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Sat, 11 Apr 2015 19:41:26 -0400 Subject: [PATCH] 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 --- src/cmd/go/build.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/cmd/go/build.go b/src/cmd/go/build.go index 6b1cd921f770f9..e9347525a62355 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 + } } }