Description: Only specify --race on amd64, as it is not supported on other architectures.
Author: Jelmer Vernooij <jelmer@debian.org>

diff --git a/test b/test
index 1c2f246..3cfe6d1 100755
--- a/test
+++ b/test
@@ -39,7 +39,11 @@ split=(${TEST// / })
 TEST=${split[@]/#/${REPO_PATH}/}
 
 echo "Running tests..."
-go test -timeout 3m ${COVER} $@ ${TEST} --race
+if [ `dpkg-architecture -q DEB_HOST_ARCH` -eq "amd64" ]; then
+	go test -timeout 3m ${COVER} $@ ${TEST} --race
+else
+	go test -timeout 3m ${COVER} $@ ${TEST}
+fi
 
 if [ -n "$INTEGRATION" ]; then
 	echo "Running integration tests..."
