14
0
forked from pool/python-pycurl

- Start excluding flaky tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycurl?expand=0&rev=41
This commit is contained in:
Tomáš Chvátal
2018-08-09 11:19:05 +00:00
committed by Git OBS Bridge
parent 7ebe19c858
commit 53fa37b590
2 changed files with 8 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 9 11:15:17 UTC 2018 - tchvatal@suse.com
- Start excluding flaky tests
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 10 11:06:40 UTC 2018 - mcepl@suse.com Tue Jul 10 11:06:40 UTC 2018 - mcepl@suse.com

View File

@@ -77,7 +77,6 @@ rm -rf %{buildroot}%{_datadir}/doc # Remove wrongly installed junk
%check %check
export PYCURL_SSL_LIBRARY=openssl export PYCURL_SSL_LIBRARY=openssl
%ifnarch %{arm} aarch64
# taken from "make test" because we only need to run nosetests, # taken from "make test" because we only need to run nosetests,
# not the rest of the mess in the upstream runner # not the rest of the mess in the upstream runner
pushd tests/fake-curl/libcurl pushd tests/fake-curl/libcurl
@@ -92,9 +91,9 @@ fi
if ! pkg-config --variable=supported_protocols libcurl|grep -qw SCP; then if ! pkg-config --variable=supported_protocols libcurl|grep -qw SCP; then
test_flags="$test_flags,\!ssh" test_flags="$test_flags,\!ssh"
fi fi
%{python_expand PYTHONPATH=$(ls -d build/lib.*) \ %{python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} \
nosetests-%$python_bin_suffix --with-flaky -a "$test_flags"} nosetests-%$python_bin_suffix -v --with-flaky -a "$test_flags" -e test_writefunction_collection
%endif }
%files %{python_files} %files %{python_files}
%license COPYING-LGPL COPYING-MIT %license COPYING-LGPL COPYING-MIT