From: Rob Pike Date: Wed, 12 Oct 2011 23:56:39 +0000 (-0700) Subject: gotest: correct the documentation of -parallel. X-Git-Tag: weekly.2011-10-18~104 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1204f740cfa6b77735877a87817a01fc4ac860a7;p=gostls13.git gotest: correct the documentation of -parallel. It said the default was zero, but it's actually $GOMAXPROCS. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5229059 --- diff --git a/src/cmd/gotest/doc.go b/src/cmd/gotest/doc.go index d60996103a..aedc55f11e 100644 --- a/src/cmd/gotest/doc.go +++ b/src/cmd/gotest/doc.go @@ -66,7 +66,7 @@ Usage: 6.out [-test.v] [-test.run pattern] [-test.bench pattern] \ [-test.cpuprofile=cpu.out] \ [-test.memprofile=mem.out] [-test.memprofilerate=1] \ - [-test.parallel=0] \ + [-test.parallel=$GOMAXPROCS] \ [-test.timeout=10] [-test.short] \ [-test.benchtime=3] [-test.cpu=1,2,3,4] @@ -100,8 +100,9 @@ Use -test.run or -test.bench to limit profiling to a particular test or benchmark. The -test.parallel flag allows parallel execution of Test functions -that call test.Parallel. The value of the flag is the maximum number -of tests to run simultaneously; by default, parallelism is disabled. +that call test.Parallel. The value of the flag is the maximum +number of tests to run simultaneously; by default, it is set to the +value of GOMAXPROCS. The -test.short flag tells long-running tests to shorten their run time. It is off by default but set by all.bash so installations of