- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user