mirror of
https://github.com/golang/go
synced 2024-11-15 08:50:40 -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:
parent
2cdf371346
commit
e983ddae2f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user