[packages/python-bcrypt] - updated tests running

qboosh qboosh at pld-linux.org
Fri Oct 27 06:29:19 CEST 2023


commit 3b545c4e2074c5565aff0f8e8373af5e7c970c4c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Oct 27 06:31:30 2023 +0200

    - updated tests running

 python-bcrypt.spec | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/python-bcrypt.spec b/python-bcrypt.spec
index eeaf24a..878e65b 100644
--- a/python-bcrypt.spec
+++ b/python-bcrypt.spec
@@ -63,11 +63,23 @@ Biblioteka powinna być zgodna z biblioteką py-bcrypt.
 
 %build
 %if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(echo $(pwd)/build-2/lib.linux-*) \
+%{__python} -m pytest tests
+%endif
 %endif
 
 %if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(echo $(pwd)/build-3/lib.linux-*) \
+%{__python3} -m pytest tests
+%endif
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-bcrypt.git/commitdiff/3b545c4e2074c5565aff0f8e8373af5e7c970c4c



More information about the pld-cvs-commit mailing list