Commit 8dd069b5 authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

androidtest.bash: require GOARCH

When finding the pkg dir, androidtest.bash assumes
that GOARCH is set. Require it up front.

Change-Id: I143f7b59ad9d98b9c3cfb53c1d65c2d33a6acc12
Reviewed-on: https://go-review.googlesource.com/27926
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarElias Naur <elias.naur@gmail.com>
Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
parent 7c04633e
......@@ -30,6 +30,10 @@ if [ "$GOARM" != "7" ]; then
echo "android only supports GOARM=7, got GOARM=$GOARM" 1>&2
exit 1
fi
if [ "$GOARCH" = "" ]; then
echo "GOARCH must be set" 1>&2
exit 1
fi
export CGO_ENABLED=1
unset GOBIN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment