From: Josh Bleecher Snyder Date: Fri, 3 Apr 2015 18:02:32 +0000 (-0700) Subject: iostest.bash: warn if GOARCH is not correct X-Git-Tag: go1.5beta1~1317 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c45f4b7145ab9bb71380f275261f096a6078b254;p=gostls13.git iostest.bash: warn if GOARCH is not correct Fixes #10334 Change-Id: I468230870ca2afc691ce879707dac34e513e1b9e Reviewed-on: https://go-review.googlesource.com/8442 Reviewed-by: David Crawshaw --- diff --git a/src/iostest.bash b/src/iostest.bash index 13f5e0cd94..7a942390af 100755 --- a/src/iostest.bash +++ b/src/iostest.bash @@ -20,6 +20,10 @@ if [ "$GOOS" != "darwin" ]; then echo "iostest.bash requires GOOS=darwin, got GOOS=$GOOS" 1>&2 exit 1 fi +if [ "$GOARCH" != "arm" ] && [ "$GOARCH" != "arm64" ]; then + echo "iostest.bash requires GOARCH=arm or GOARCH=arm64, got GOARCH=$GOARCH" 1>&2 + exit 1 +fi if [ "$GOARCH" == "arm" ]; then export GOARM=7 fi