Commit 2ce82c6c authored by David Crawshaw's avatar David Crawshaw

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/8827Reviewed-by: default avatarMinux Ma <minux@golang.org>
parent 7db8835a
...@@ -127,12 +127,15 @@ func init() { ...@@ -127,12 +127,15 @@ func init() {
addBuildFlags(cmdBuild) addBuildFlags(cmdBuild)
addBuildFlags(cmdInstall) addBuildFlags(cmdInstall)
if buildContext.GOOS == "darwin" && buildContext.GOARCH == "arm" { if buildContext.GOOS == "darwin" {
// darwin/arm cannot run multiple tests simultaneously. switch buildContext.GOARCH {
// Parallelism is limited in go_darwin_arm_exec, but case "arm", "arm64":
// also needs to be limited here so go test std does not // darwin/arm cannot run multiple tests simultaneously.
// timeout tests that waiting to run. // Parallelism is limited in go_darwin_arm_exec, but
buildP = 1 // also needs to be limited here so go test std does not
// timeout tests that waiting to run.
buildP = 1
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment