14
0
forked from pool/python-pycurl

Accepting request 503384 from openSUSE:Leap:15.0:Rings:1-MinimalX

- exclude http2 and ssh tests if curl(-mini) doesn't support it

See also bug 1042919

OBS-URL: https://build.opensuse.org/request/show/503384
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycurl?expand=0&rev=27
This commit is contained in:
2017-06-15 11:58:36 +00:00
committed by Git OBS Bridge
parent 6a7bfb0850
commit 8ef2cc9944
2 changed files with 14 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 8 16:15:49 UTC 2017 - lnussel@suse.de
- exclude http2 and ssh tests if curl(-mini) doesn't support it
-------------------------------------------------------------------
Tue Dec 20 15:55:00 UTC 2016 - jmatejek@suse.com

View File

@@ -83,13 +83,16 @@ pushd tests/fake-curl/libcurl
rm -f *.so
make
popd
EXCLUDES=""
%if 0%{?suse_version} < 1320
# CURL too old to know HTTP/2
EXCLUDES="-e test_http_version_2_0"
%endif
# exclude certain tests
test_flags='!online'
if ! pkg-config --variable=supported_features libcurl|grep -qw HTTP2; then
test_flags="$test_flags,\!http2"
fi
if ! pkg-config --variable=supported_protocols libcurl|grep -qw SCP; then
test_flags="$test_flags,\!ssh"
fi
%{python_expand PYTHONPATH=$(ls -d build/lib.*) \
nosetests-%$python_bin_suffix --with-flaky -a '!online' $EXCLUDES}
nosetests-%$python_bin_suffix --with-flaky -a "$test_flags"}
%files %{python_files}
%defattr(-,root,root,-)