summaryrefslogtreecommitdiff
path: root/test/run.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/run.go')
-rw-r--r--test/run.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/run.go b/test/run.go
index c96e37dba..a8d4baa3a 100644
--- a/test/run.go
+++ b/test/run.go
@@ -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