1
0
mirror of https://github.com/golang/go synced 2024-11-15 05:50:37 -07:00

[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

»»»
This commit is contained in:
Shenghou Ma 2012-06-13 16:23:28 -04:00
parent 2cdf371346
commit e983ddae2f
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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