From 416f1fb28c25a285f6dd222975623a680ccc960b Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Jun 06 2019 17:01:09 +0000 Subject: Apply workaround for tests to pass Signed-off-by: Igor Gnatenko --- diff --git a/python-pygit2.spec b/python-pygit2.spec index 36d40f8..4b11bbe 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -68,12 +68,11 @@ make -C docs html %install %py2_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}%{python2_sitearch} py.test-%{python2_version} -v || : PYTHONPATH=%{buildroot}%{python3_sitearch} py.test-%{python3_version} -v || :