]> Cypherpunks repositories - gostls13.git/commit
cmd/go: use testGOROOT in TestListTemplateContextFunction
authorBryan C. Mills <bcmills@google.com>
Thu, 10 Mar 2022 20:09:17 +0000 (15:09 -0500)
committerBryan Mills <bcmills@google.com>
Mon, 14 Mar 2022 17:51:51 +0000 (17:51 +0000)
commit676858f3d4786054e1b27b999b5e73190f25288c
treed34ced5b2ac5a651335cf8a115606150c19f9f31
parentd99ff0382116bb472b9f92ddf23cb22bf145bbcd
cmd/go: use testGOROOT in TestListTemplateContextFunction

This test uses testgo to run 'go list', so it should use the correct
GOROOT for testgo. (This may be particularly relevant when the test
binary itself is build with -trimpath, in which case runtime.GOROOT()
is not valid.)

Updates #51483

Change-Id: I79b310f88e3a200122d6289073df1385e3e97cca
Reviewed-on: https://go-review.googlesource.com/c/go/+/391801
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Trust: Daniel Martí <mvdan@mvdan.cc>
src/cmd/go/go_test.go