]> Cypherpunks repositories - gostls13.git/commit
cmd/go: stream test output if parallelism is set to 1.
authorRahul Chaudhry <rahulchaudhry@chromium.org>
Sat, 7 Feb 2015 01:47:54 +0000 (17:47 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 9 Feb 2015 18:20:28 +0000 (18:20 +0000)
commitf8176f81115b5b9b58ddfe4b37e0565fd599fecd
tree37d39231b6e74fe40d3e3abbbad0f85e589bf331
parentacfe3a59bd324cc70e8642bc07e8578f0ac64cd9
cmd/go: stream test output if parallelism is set to 1.

"go test -v" buffers output if more than one package is
being tested to avoid mixing the outputs from multiple
tests running in parallel. It currently enables streaming
if there's only a single package under test.

It is ok to stream output from multiple tests if we know
that they're not going to be running in parallel.

To see the difference: go test -v -p=1 runtime fmt -short

Change-Id: Idc24575c899eac30d553e0bf52b86f90e189392d
Reviewed-on: https://go-review.googlesource.com/4153
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/test.go