]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/test: prepend -test.timeout rather than appending
authorBryan C. Mills <bcmills@google.com>
Wed, 4 Sep 2019 16:59:41 +0000 (12:59 -0400)
committerBryan C. Mills <bcmills@google.com>
Wed, 4 Sep 2019 20:38:05 +0000 (20:38 +0000)
commitd21953df047868ed3bcfd0172a6c1672642f5b4a
treec9295bc98cf2d2b36903b744e8731d4f6667af79
parent5ff38e476177ce9e67375bd010bea2e030f2fe19
cmd/go/internal/test: prepend -test.timeout rather than appending

Tests may accept positional arguments, in which case the -test.timeout
flag must be passed before those arguments.

Fixes #34072

Change-Id: I5b92d7c0edc4f9e1efb63b0733937b76236c0eff
Reviewed-on: https://go-review.googlesource.com/c/go/+/193297
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/internal/test/test.go
src/cmd/go/testdata/script/test_timeout.txt