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