Skip to content

Commit

Permalink
cmd/go: run darwin/arm64 tests sequentially
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
crawshaw committed Apr 13, 2015
1 parent 7db8835 commit 2ce82c6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/cmd/go/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

Expand Down

0 comments on commit 2ce82c6

Please sign in to comment.