summaryrefslogtreecommitdiff
path: root/src/cmd/gotest
diff options
context:
space:
mode:
authorIcarus Sparry <golang@icarus.freeuk.com>2010-01-26 13:15:59 -0800
committerIcarus Sparry <golang@icarus.freeuk.com>2010-01-26 13:15:59 -0800
commitc7316136bf2cf1cdeb51c8da609fcc0a9ca07323 (patch)
treece874312c2f7d608aa5e12b145748ab4c81cb553 /src/cmd/gotest
parenta55690b8ea8cdc5f55b76a0a47e40a374f02ca6a (diff)
downloadgolang-c7316136bf2cf1cdeb51c8da609fcc0a9ca07323.tar.gz
gotest still assumes that gopack is in your PATH
If your $PATH does not include $GOBIN then the build fails at the first *.a file, which is probably when running the tests for tar R=rsc CC=golang-dev http://codereview.appspot.com/193066 Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/gotest')
-rwxr-xr-xsrc/cmd/gotest/gotest2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gotest/gotest b/src/cmd/gotest/gotest
index b97551309..e6e9f16f5 100755
--- a/src/cmd/gotest/gotest
+++ b/src/cmd/gotest/gotest
@@ -119,7 +119,7 @@ nmgrep() {
# Figure out pkg.
case "$i" in
*.a)
- pkg=$(gopack p $i __.PKGDEF | sed -n 's/^package //p' | sed 1q)
+ pkg=$("$GOBIN"/gopack p $i __.PKGDEF | sed -n 's/^package //p' | sed 1q)
;;
*)
pkg=$(sed -n 's/^ .* in package "\(.*\)".*/\1/p' $i | sed 1q)