summaryrefslogtreecommitdiff
path: root/src/nacltest.bash
diff options
context:
space:
mode:
authorShenghou Ma <minux@golang.org>2014-07-10 15:36:48 -0400
committerShenghou Ma <minux@golang.org>2014-07-10 15:36:48 -0400
commitc20cdfa5f9492adc011a0cb563a3d28a351c4751 (patch)
treebdd116f55d48ec27f9ebe3d897c9111a76cea45d /src/nacltest.bash
parent5b77819bc9c9de5b51cdca2c95b3b443ce7e1adf (diff)
downloadgo-c20cdfa5f9492adc011a0cb563a3d28a351c4751.tar.gz
nacltest.bash: set GOROOT before invoking cmd/go
The builder builds with GOROOT_FINAL=/usr/local/go set. TBR=rsc R=golang-codereviews CC=golang-codereviews https://codereview.appspot.com/112100043
Diffstat (limited to 'src/nacltest.bash')
-rwxr-xr-xsrc/nacltest.bash3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nacltest.bash b/src/nacltest.bash
index 2b62830a8..154d99ae9 100755
--- a/src/nacltest.bash
+++ b/src/nacltest.bash
@@ -67,6 +67,9 @@ if [ ! -f make.bash ]; then
fi
GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH ./make.bash
+# the builder might have set GOROOT_FINAL.
+export GOROOT=$(pwd)/..
+
# Build zip file embedded in package syscall.
gobin=${GOBIN:-$(pwd)/../bin}
rm -f pkg/syscall/fstest_nacl.go