From: Shenghou Ma Date: Wed, 13 Jun 2012 20:23:28 +0000 (-0400) Subject: [release-branch.go1] build: unset GOROOT_FINAL before tests X-Git-Tag: go1.0.2~114 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e983ddae2ff489abd00334d45a67581eb7ec9dd1;p=gostls13.git [release-branch.go1] build: unset GOROOT_FINAL before tests ««« backport 4ee28b87fb90 build: unset GOROOT_FINAL before tests Fix the builders. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5976068 »»» --- diff --git a/src/run.bash b/src/run.bash index c2a52a078e..6619fc1fff 100755 --- a/src/run.bash +++ b/src/run.bash @@ -24,6 +24,11 @@ else echo fi +# we must unset GOROOT_FINAL before tests, because runtime/debug requires +# correct access to source code, so if we have GOROOT_FINAL in effect, +# at least runtime/debug test will fail. +unset GOROOT_FINAL + echo '# Testing packages.' time go test std -short -timeout=120s echo diff --git a/src/run.bat b/src/run.bat index c7a1579728..3bf9e8fc7e 100644 --- a/src/run.bat +++ b/src/run.bat @@ -25,6 +25,11 @@ if errorlevel 1 goto fail echo. :norebuild +:: we must unset GOROOT_FINAL before tests, because runtime/debug requires +:: correct access to source code, so if we have GOROOT_FINAL in effect, +:: at least runtime/debug test will fail. +set GOROOT_FINAL= + echo # Testing packages. go test std -short -timeout=120s if errorlevel 1 goto fail