14
0
forked from pool/python-pycurl

Accepting request 646093 from home:vitezslav_cizek:branches:devel:languages:python

- Don't run tests that fail randomly or under load
  * add disable_randomly_failing_tests.patch

OBS-URL: https://build.opensuse.org/request/show/646093
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycurl?expand=0&rev=48
This commit is contained in:
Tomáš Chvátal
2018-11-04 09:35:53 +00:00
committed by Git OBS Bridge
parent 84540e8381
commit 28267579d1
3 changed files with 67 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -44,6 +44,7 @@ Patch0: increase_test_timeout.diff
Patch1: pycurl-libssh.patch
# PATCH-FIX-OPENSUSE python-pycurl-7.43.0-tls-backend.patch -- do not run runtime tests to compare linked libs
Patch2: python-pycurl-7.43.0-tls-backend.patch
Patch3: disable_randomly_failing_tests.patch
BuildRequires: %{python_module devel}
BuildRequires: fdupes
BuildRequires: libcurl-devel >= 7.19.0
@@ -106,7 +107,7 @@ rm -f *.so
make %{?_smp_mflags}
popd
# exclude certain tests
test_flags='!online'
test_flags='!online,!occasionally_failing'
if ! pkg-config --variable=supported_features libcurl|grep -qw HTTP2; then
test_flags="$test_flags,\!http2"
fi