Commit c45f4b71 authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

iostest.bash: warn if GOARCH is not correct

Fixes #10334

Change-Id: I468230870ca2afc691ce879707dac34e513e1b9e
Reviewed-on: https://go-review.googlesource.com/8442Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
parent ca0adedd
......@@ -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
......
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