build: unset GOPATH before tests
This is because we disallow local import for non-local packages, if
GOROOT happens to be under one of GOPATH, then some tests will fail
to build.
Fixes #3337.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5852043
diff --git a/src/run.bash b/src/run.bash
index 748f6e9..41ab37e 100755
--- a/src/run.bash
+++ b/src/run.bash
@@ -8,6 +8,8 @@
eval $(go env)
unset CDPATH # in case user has it set
+unset GOPATH # we disallow local import for non-local packages, if $GOROOT happens
+ # to be under $GOPATH, then some tests below will fail
# no core files, please
ulimit -c 0