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: 's avatarMinux Ma <minux@golang.org>
parent 7db8835a
......@@ -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
}
}
}
......
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