From 47ee98253e88805f7ff46c4b010818e1ca4c7713 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Wed, 7 Mar 2012 12:43:25 +0800 Subject: [PATCH] test/run: use all available cores on ARM system R=rsc CC=golang-dev https://golang.org/cl/5753054 --- test/run.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/run.go b/test/run.go index f0b2555db0..593e4ade64 100644 --- a/test/run.go +++ b/test/run.go @@ -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 } -- 2.48.1