[packages/hotdoc] - fix tests without hotdoc installed
qboosh
qboosh at pld-linux.org
Thu Jun 4 17:37:55 CEST 2026
commit e8b9e5e7cfde6e8e605ebfbcf49e5a1909947fda
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jun 4 17:38:08 2026 +0200
- fix tests without hotdoc installed
hotdoc.spec | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/hotdoc.spec b/hotdoc.spec
index 0c966b7..6109ca2 100644
--- a/hotdoc.spec
+++ b/hotdoc.spec
@@ -88,7 +88,12 @@ itp.).
%py3_build
%if %{with tests}
-%{__python3} -m unittest discover -s hotdoc/tests
+# take hotdoc source dir out of current dir
+install -d testdir
+cd testdir
+PYTHONPATH=$(readlink -f ../build-3/lib.*) \
+%{__python3} -m unittest discover -s ../hotdoc/tests
+cd ..
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/hotdoc.git/commitdiff/e8b9e5e7cfde6e8e605ebfbcf49e5a1909947fda
More information about the pld-cvs-commit
mailing list