From 004e7a8f5927922f0ec2ad1e0855c81b240cc71c Mon Sep 17 00:00:00 2001 From: Ankur Sinha (Ankur Sinha Gmail) Date: Oct 03 2021 18:05:08 +0000 Subject: fix: ignore s390x where test fail because of endianness https://github.com/wmayner/pyphi/issues/41 --- diff --git a/python-pyphi.spec b/python-pyphi.spec index e187c4a..71de313 100644 --- a/python-pyphi.spec +++ b/python-pyphi.spec @@ -29,6 +29,9 @@ Patch0: 0001-fix-py3.10-correct-collections-import.patch BuildRequires: git-core BuildArch: noarch +# Tests fails on s390x: https://github.com/wmayner/pyphi/issues/41 +ExcludeArch: s390x + %description %_description %package -n python3-pyphi @@ -73,12 +76,8 @@ rm docs/_build/html/{.doctrees,.buildinfo} -vf %check %if %{with tests} -# Tests fails on s390x: https://github.com/wmayner/pyphi/issues/41 -# cannot use ifarch or %_arch or %_host_cpu: they're all related to build arch, which is noarch here -%if "%_target_cpu" != "s390x" %{pytest} %endif -%endif %files -n python3-pyphi -f %{pyproject_files} %doc README.md CHANGELOG.md CACHING.rst redis.conf