mirror of https://github.com/golang/go.git
This cuts the running time for 'go test -short ./go/packages' by about 50% by skipping the tests that run in GOPATH mode. All of the tests are still run when the -short flag is not set, so the longtest builders should still report any GOPATH-mode regressions, and the faster short tests should improve turnaround times (and resource usage and associated test flakiness) on the non-longtest builders. ~/x/tools/go/packages$ go test -short PASS ok golang.org/x/tools/go/packages 25.379s ~/x/tools/go/packages$ go test PASS ok golang.org/x/tools/go/packages 42.812s For golang/go#46764 Change-Id: Iff9a94b6a2657174cd5c60aeb732ca4f132a7897 Reviewed-on: https://go-review.googlesource.com/c/tools/+/331052 Trust: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
|---|---|---|
| .. | ||
| analysis | ||
| ast | ||
| buildutil | ||
| callgraph | ||
| cfg | ||
| expect | ||
| gccgoexportdata | ||
| gcexportdata | ||
| internal | ||
| loader | ||
| packages | ||
| pointer | ||
| ssa | ||
| types | ||
| vcs | ||