]> Cypherpunks repositories - gostls13.git/commit
cmd/go: skip long tests in -short mode
authorRuss Cox <rsc@golang.org>
Thu, 4 Jan 2018 22:22:29 +0000 (17:22 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 5 Jan 2018 18:56:00 +0000 (18:56 +0000)
commit26222ddc8b37909e97c45965f4fe2f6bd68b9e00
tree6aaf53e207192a55eea12ba010a94d99b3d80d31
parentfcdcb19496d97f2e039e6fd6fff615d4adb41392
cmd/go: skip long tests in -short mode

I marked every test that takes more than 0.5 seconds on my machine
as something to run only when not in -short mode, or in -short mode
on the beefy linux/amd64, windows/amd64, and darwin/amd64 builders.

I also shortened a few needlessly-expensive tests where possible.

Cuts the time for go test -short cmd/go from 45s to 15s on my machine.
Should help even more on some of our builders and slower user machines.

Fixes #23287.

Change-Id: I0e36003ef947b0ebe4224a1373731f9fa9216843
Reviewed-on: https://go-review.googlesource.com/86252
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/go_test.go
src/cmd/go/vendor_test.go