]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix -outputdir -coverprofile interaction
authorRuss Cox <rsc@golang.org>
Fri, 1 Dec 2017 15:29:10 +0000 (10:29 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 1 Dec 2017 19:47:23 +0000 (19:47 +0000)
commit3716ba033774489553300086b126bd10c2b29f57
tree6dbd60c1220428dcdd815b716cf7d80f26f84bac
parent9372166faa1bf04f0d83706da2b33ed2659ee976
cmd/go: fix -outputdir -coverprofile interaction

The CL introducing merged handling of cover profiles
did not correctly account for the fact that the file name argument
to -coverprofile is required to be interpreted relative to
the -outputdir argument.

Fixes #22804.

Change-Id: I804774013c12187313b8fd2044302978bdbb6697
Reviewed-on: https://go-review.googlesource.com/81455
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/test/cover.go
src/cmd/go/internal/test/test.go
src/cmd/go/internal/test/testflag.go