mirror of
https://github.com/golang/go
synced 2024-11-02 09:28:34 +00:00
test/run: use all available cores on ARM system
R=rsc CC=golang-dev https://golang.org/cl/5753054
This commit is contained in:
parent
881966d2a5
commit
47ee98253e
1 changed files with 4 additions and 5 deletions
|
@ -30,7 +30,7 @@ import (
|
|||
|
||||
var (
|
||||
verbose = flag.Bool("v", false, "verbose. if set, parallelism is set to 1.")
|
||||
numParallel = flag.Int("n", 2*runtime.NumCPU(), "number of parallel tests to run")
|
||||
numParallel = flag.Int("n", runtime.NumCPU(), "number of parallel tests to run")
|
||||
summary = flag.Bool("summary", false, "show summary of results")
|
||||
showSkips = flag.Bool("show_skips", false, "show skipped tests")
|
||||
)
|
||||
|
@ -60,10 +60,9 @@ const maxTests = 5000
|
|||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
|
||||
// Disable parallelism if printing, or if running on
|
||||
// (presumably underpowered) arm systems.
|
||||
if *verbose || runtime.GOARCH == "arm" {
|
||||
|
||||
// Disable parallelism if printing
|
||||
if *verbose {
|
||||
*numParallel = 1
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue