From ee33bdb1d65c83c1f64fd244f53e46560d9b33564f4d7e91ad0ee4fad22d1a17 Mon Sep 17 00:00:00 2001 From: Oliver Kurz Date: Sat, 8 Jun 2019 13:51:33 +0000 Subject: [PATCH] Accepting request 708757 from home:okurz:branches:devel:languages:python - Disable tests on big endian arch due to https://github.com/azaghal/pydenticon/issues/10 OBS-URL: https://build.opensuse.org/request/show/708757 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydenticon?expand=0&rev=8 --- python-pydenticon.changes | 5 +++++ python-pydenticon.spec | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/python-pydenticon.changes b/python-pydenticon.changes index c8c8f6c..9fc03b6 100644 --- a/python-pydenticon.changes +++ b/python-pydenticon.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jun 8 11:28:18 UTC 2019 - Oliver Kurz + +- Disable tests on big endian arch due to https://github.com/azaghal/pydenticon/issues/10 + ------------------------------------------------------------------- Mon May 20 15:32:34 UTC 2019 - pgajdos@suse.com diff --git a/python-pydenticon.spec b/python-pydenticon.spec index 3af8707..034a854 100644 --- a/python-pydenticon.spec +++ b/python-pydenticon.spec @@ -17,6 +17,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +# tests on big endian systems fail due to https://github.com/azaghal/pydenticon/issues/10 , disabled until fixed" +# can not use "ifarch" when BuildArch is set to noarch +%if %_arch == s390x || %_arch == s390x || %_arch == ppc || %_arch == ppc64 +%bcond_with test +%else +%bcond_without test +%endif %define modname pydenticon Name: python-%{modname} Version: 0.3.1 @@ -31,6 +38,7 @@ BuildRequires: %{python_module base} BuildRequires: %{python_module setuptools} # SECTION test requirements BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest} # /SECTION BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -66,7 +74,9 @@ original Sigil implementation, like: %python_expand %fdupes %{buildroot}%{$python_sitelib}/%{modname} %check +%if %{with test} %python_exec setup.py test +%endif %files %{python_files} %defattr(-,root,root,-)