]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix docs for -timeout
authorRuss Cox <rsc@golang.org>
Thu, 6 Jul 2017 04:14:15 +0000 (00:14 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 6 Jul 2017 04:32:24 +0000 (04:32 +0000)
The text before CL 45816 was:

-timeout t
If a test runs longer than t, panic.
The default is 10 minutes (10m).

CL 45816 was supposed to be about clarifying test vs test binary,
and it did add the clarification of referring to "duration d",
but it also introduced incorrect text about timeout 0.

The new text in this CL preserves the good change and
eliminates the incorrect one:

-timeout d
If a test binary runs longer than duration d, panic.
The default is 10 minutes (10m).

For #14780.

Change-Id: I4f79d6e48ed9295bc9f34a36aa90d3b03b40d7f5
Reviewed-on: https://go-review.googlesource.com/47571
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/test/test.go

index aaeaab60cf4efe7b16a80507f00924ae2b2dc9d9..7dd7ba90f0941e0b4373a260bd57c93be5f6ace4 100644 (file)
 //         exhaustive tests.
 //
 //     -timeout d
-//         If the cumulative test time for a package runs longer than
-//         duration d, panic. Timeout is disabled if set to 0.
+//         If a test binary runs longer than duration d, panic.
 //         The default is 10 minutes (10m).
 //
 //     -v
index 38b7e3fda3e7cf4f09e4262934ac7c0da7db4c15..ebebffd77777dbce5f864249b5312fb7f42eabb3 100644 (file)
@@ -224,8 +224,7 @@ const testFlag2 = `
            exhaustive tests.
 
        -timeout d
-           If the cumulative test time for a package runs longer than
-           duration d, panic. Timeout is disabled if set to 0.
+           If a test binary runs longer than duration d, panic.
            The default is 10 minutes (10m).
 
        -v