go/go
Bryan C. Mills cae92d5d68 go/packages: skip GOPATH tests in short mode
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>
2021-07-08 21:00:45 +00:00
..
analysis tools: make printf analysis have more helpful output 2021-05-21 23:19:31 +00:00
ast go/ast/astutil: fix panic when rewriting multi-argument type instances 2021-06-09 21:40:20 +00:00
buildutil all: go fmt ./... 2021-02-20 03:28:52 +00:00
callgraph go/callgraph: change reflect.Call to reflect.Value.Call in comment 2021-06-30 16:45:04 +00:00
cfg all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
expect go/expect: use parser.AllErrors when extracting Notes 2021-02-23 18:29:07 +00:00
gccgoexportdata all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
gcexportdata all: go fmt ./... 2021-02-20 03:28:52 +00:00
internal go/internal/cgo: handle symlinks with $PWD, not -srcdir 2021-06-29 19:12:30 +00:00
loader go/internal/cgo: handle symlinks with $PWD, not -srcdir 2021-06-29 19:12:30 +00:00
packages go/packages: skip GOPATH tests in short mode 2021-07-08 21:00:45 +00:00
pointer all: go fmt ./... 2021-02-20 03:28:52 +00:00
ssa go/ssa: support unsafe.Add and unsafe.Slice 2021-07-08 02:47:23 +00:00
types all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
vcs all: replace all usages of os/exec with golang.org/x/sys/execabs 2021-01-19 22:25:03 +00:00