Apply workaround for tests to pass

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2019-06-06 19:00:46 +02:00
parent 5baa1e200b
commit 0c05c849f8
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -51,12 +51,11 @@ make -C docs html
%install
%py3_install
find %{_builddir} -name '.buildinfo' -delete
# Correct the permissions.
find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
find %{_builddir} -name '.buildinfo' -print -delete
%check
# This is horrible, but otherwise pytest does not use pygit2 from site-packages
rm -f pygit2/__init__.py
%ifarch %{arch_test_fail}
PYTHONPATH=%{buildroot}%{python3_sitearch} py.test-%{python3_version} -v || :
%else