- Add patch skip-BE-tests.patch skipping failing tests again

(gh#kbandla/dpkt#505).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dpkt?expand=0&rev=24
This commit is contained in:
2021-10-07 13:01:42 +00:00
committed by Git OBS Bridge
parent 2b8e17146f
commit f24fff9ddb
3 changed files with 69 additions and 7 deletions

View File

@@ -25,6 +25,9 @@ License: BSD-3-Clause
Group: Development/Libraries/Python
URL: https://github.com/kbandla/dpkt
Source: https://github.com/kbandla/dpkt/archive/v%{version}.tar.gz
# PATCH-FIX-UPSTREAM skip-BE-tests.patch gh#kbandla/dpkt#505 mcepl@suse.com
# Skip tests failing on BE architectures
Patch0: skip-BE-tests.patch
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@@ -51,12 +54,7 @@ sed -i -e '/addopts=/d' setup.cfg
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# Skipped because of gh#kbandla/dpkt#505
export SKIPTESTS=""
%ifarch s390x ppc64
export SKIPTESTS="not (test_ethernet_unpack or test_ethernet_unpack or test_writepkt_epb_ts or test_custom_read_write or test_multi_idb_writer)"
%endif
%pytest -k "${SKIPTESTS}" dpkt
%pytest dpkt
%files %{python_files}
%license LICENSE