diff --git a/python-pycurl.changes b/python-pycurl.changes index f69fda3..70aed52 100644 --- a/python-pycurl.changes +++ b/python-pycurl.changes @@ -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 diff --git a/python-pycurl.spec b/python-pycurl.spec index 22bc720..e2f89ed 100644 --- a/python-pycurl.spec +++ b/python-pycurl.spec @@ -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,-)