mirror of
https://github.com/golang/go
synced 2024-10-03 06:21:21 -06:00
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 <minux@golang.org>
This commit is contained in:
parent
7db8835a50
commit
2ce82c6c65
@ -127,7 +127,9 @@ func init() {
|
|||||||
addBuildFlags(cmdBuild)
|
addBuildFlags(cmdBuild)
|
||||||
addBuildFlags(cmdInstall)
|
addBuildFlags(cmdInstall)
|
||||||
|
|
||||||
if buildContext.GOOS == "darwin" && buildContext.GOARCH == "arm" {
|
if buildContext.GOOS == "darwin" {
|
||||||
|
switch buildContext.GOARCH {
|
||||||
|
case "arm", "arm64":
|
||||||
// darwin/arm cannot run multiple tests simultaneously.
|
// darwin/arm cannot run multiple tests simultaneously.
|
||||||
// Parallelism is limited in go_darwin_arm_exec, but
|
// Parallelism is limited in go_darwin_arm_exec, but
|
||||||
// also needs to be limited here so go test std does not
|
// also needs to be limited here so go test std does not
|
||||||
@ -135,6 +137,7 @@ func init() {
|
|||||||
buildP = 1
|
buildP = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Flags set by multiple commands.
|
// Flags set by multiple commands.
|
||||||
var buildA bool // -a flag
|
var buildA bool // -a flag
|
||||||
|
Loading…
Reference in New Issue
Block a user