Skip to content

x/vgo: vgo test does not honor special/test toolkit flags when wildcards are used #26214

Closed
@erikh

Description

@erikh

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

erikh@ab4ac25b692d:~$ go version
go version go1.10.3 linux/amd64
erikh@ab4ac25b692d:~$ vgo version
go version go1.10.3 linux/amd64 vgo:2018-02-20.1
erikh@ab4ac25b692d:~$ 

Does this issue reproduce with the latest release?

Yes, AFAIK I am using the latest release.

What operating system and processor architecture are you using (go env)?

erikh@ab4ac25b692d:~$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/go/src/github.com/erikh/thing/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/go"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build371740159=/tmp/go-build -gno-record-gcc-switches"

What did you do?

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

Put the following in one dir named db and make another dir with a go file, just a package statement should do.

https://play.golang.org/p/FJlfCzFvCXK

What did you expect to see?

vgo test -v ./... -check.v behaving like go test -v ./... -check.v

What did you see instead?

When go test -v ./... -check.v is invoked, the parameter is provided properly to test dirs that need it, and not to test dirs that don't; specifically dirs with no tests.

vgo OTOH will bail when that last argument is provided. If you specify the direct path to the package such as ./db, it works fine.

Hope this is useful!

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions