1
0
mirror of https://github.com/golang/go synced 2024-11-23 16:50:06 -07:00

cmd/go: set GOROOT when testing "go install cmd/fix"

This particular test would never pass unless you had GOROOT set in your
environment. This changes makes the test use the baked-in GOROOT, as it
does with GOOS and GOARCH.

R=golang-dev, dave, iant
CC=golang-dev
https://golang.org/cl/43080043
This commit is contained in:
Andrew Gerrand 2013-12-17 12:17:56 +11:00
parent e962f8f1c6
commit 1561230ca0

View File

@ -36,8 +36,9 @@ stop() {
ok=true
allok=true
unset GOPATH
unset GOBIN
unset GOPATH
unset GOROOT
TEST 'file:line in error messages'
# Test that error messages have file:line information at beginning of
@ -258,6 +259,7 @@ if [ ! -x $d/gobin/godoc ]; then
fi
TEST godoc installs into GOROOT
GOROOT=$(./testgo env GOROOT)
rm -f $GOROOT/bin/godoc
./testgo install code.google.com/p/go.tools/cmd/godoc
if [ ! -x $GOROOT/bin/godoc ]; then