forked from pool/python-xmlsec
- Run tests with -n1 to avoid race condition in tests
gh#xmlsec/python-xmlsec#210 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmlsec?expand=0&rev=24
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 19 11:33:28 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Run tests with -n1 to avoid race condition in tests
|
||||||
|
gh#xmlsec/python-xmlsec#210
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 18 13:13:45 UTC 2022 - Markéta Machová <mmachova@suse.com>
|
Tue Oct 18 13:13:45 UTC 2022 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
@@ -16,7 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-xmlsec
|
Name: python-xmlsec
|
||||||
Version: 1.3.13
|
Version: 1.3.13
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -30,6 +29,7 @@ BuildRequires: %{python_module lxml >= 3.8.0}
|
|||||||
BuildRequires: %{python_module lxml-devel}
|
BuildRequires: %{python_module lxml-devel}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pkgconfig}
|
BuildRequires: %{python_module pkgconfig}
|
||||||
|
BuildRequires: %{python_module pytest-xdist}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@@ -62,12 +62,12 @@ export CFLAGS="%{optflags}"
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%ifarch %ix86
|
# gh#xmlsec/python-xmlsec#244
|
||||||
export skip_tests="not test_reinitialize_module"
|
donttest="test_sign_case5"
|
||||||
%else
|
|
||||||
export skip_tests=""
|
# Run tests with -n 1 to avoid race condition in tests
|
||||||
%endif
|
# gh#xmlsec/python-xmlsec#210
|
||||||
%pytest_arch -k "$skip_tests" tests/
|
%pytest_arch -n 1 -k "not (${donttest})" tests/
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
Reference in New Issue
Block a user