cmd/go: -outputdir being ignored by go test #22804
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version devel +e4a3043d1d Sun Nov 19 05:06:59 2017 +0000 linux/amd64
Does this issue reproduce with the latest release?
No, it works fine with v1.9.2
What operating system and processor architecture are you using (
go env
)?amd64
What did you do?
From the root of a package I wanted to test I ran:
go test -covermode=count -coverprofile=profile.coverprofile -outputdir=/tmp/coverprofiles
What did you expect to see?
I expected to find the file
profile.coverprofile
in/tmp/coverprofiles
.What did you see instead?
The directory
/tmp/coverprofiles
was empty and instead the fileprofile.coverprofile
was in the current directory.The text was updated successfully, but these errors were encountered: