DEB_HOST_ARCH=$(dpkg-architecture -qDEB_HOST_ARCH)

if [ "x${DEB_HOST_ARCH}" = "xi386" ]; then
  # test_rectangle started failing on i386,
  # see https://github.com/nschloe/pygalmesh/issues/170
  TEST_OPTIONS="not test_rectangle"
elif [ "x${DEB_HOST_ARCH}" = "xs390x" ]; then
  TEST_OPTIONS="not test_from_array_with_subdomain_sizing"
fi

for pyver in $(py3versions -sv); do
  python$pyver -m pytest -k "${TEST_OPTIONS}"
done
