]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: pass a -test.timeout option to a host test
authorIan Lance Taylor <iant@golang.org>
Thu, 19 May 2022 19:10:38 +0000 (12:10 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 19 May 2022 21:32:46 +0000 (21:32 +0000)
commitdd83fd8a70d324be96d2fcac753b202db0625538
treee5b14c85a9dd86b1d4a6411259926f0d118b2244
parent34507e879d31d082eeb5f5722c6c2aceaeb7e052
cmd/dist: pass a -test.timeout option to a host test

For a host test we build the test using "go test -c" and then run the
test binary. A test binary run in this way has no default timeout.
This CL gives it a timeout of 5 minutes, scaled for the target.
We can adjust the timeout if necessary.

For #52998

Change-Id: Ib759142f3e71cbb37ec858182998fc5d4fba7ab6
Reviewed-on: https://go-review.googlesource.com/c/go/+/407374
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
src/cmd/dist/test.go