Skip to content

Commit

Permalink
test/run: limit parallelism to 1 for cross-exec builds
Browse files Browse the repository at this point in the history
This matters for NaCl, which seems to swamp my 4-core MacBook Pro otherwise.
It's not a correctness problem, just a usability problem.

LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/98600046
  • Loading branch information
rsc committed May 28, 2014
1 parent d432238 commit 4895f0d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ const maxTests = 5000
func main() {
flag.Parse()

// Disable parallelism if printing
if *verbose {
*numParallel = 1
}

goos = os.Getenv("GOOS")
goarch = os.Getenv("GOARCH")
findExecCmd()

// Disable parallelism if printing or if using a simulator.
if *verbose || len(findExecCmd()) > 0 {
*numParallel = 1
}

ratec = make(chan bool, *numParallel)
rungatec = make(chan bool, *runoutputLimit)
var err error
Expand Down

0 comments on commit 4895f0d

Please sign in to comment.