From c45f4b7145ab9bb71380f275261f096a6078b254 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Fri, 3 Apr 2015 11:02:32 -0700 Subject: [PATCH] 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 --- src/iostest.bash | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.48.1