[packages/kicad] - some tests adjustments

qboosh qboosh at pld-linux.org
Tue Apr 30 17:05:33 CEST 2024


commit 76fb0245a62ca9fc087b2ba5e2156cea00ba7395
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Apr 30 17:05:52 2024 +0200

    - some tests adjustments

 kicad.spec | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/kicad.spec b/kicad.spec
index a36888f..d74f36f 100644
--- a/kicad.spec
+++ b/kicad.spec
@@ -58,6 +58,9 @@ BuildRequires:	pkgconfig
 BuildRequires:	po4a >= 0.51
 %if %{with tests}
 BuildRequires:	python3-cairosvg
+BuildRequires:	python3-pytest
+# TODO
+#BuildRequires:	python3-pytest-image-diff
 %endif
 BuildRequires:	python3-devel >= 1:3.6
 BuildRequires:	python3-pybind11
@@ -222,6 +225,11 @@ Documentation and tutorials for Kicad in Chinese.
 %prep
 %setup -q -a 1 -a 3 -a 4 %{?with_packages3D:-a 5} -a 6
 
+%ifarch x32
+# fails on x32
+%{__sed} -i -e '/test_coroutine.cpp/d' qa/tests/common/CMakeLists.txt
+%endif
+
 %build
 
 build_library() {
@@ -270,6 +278,7 @@ cd build
 %{__make} VERBOSE=1
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 %{__make} test ARGS=--output-on-failure
 %endif
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kicad.git/commitdiff/76fb0245a62ca9fc087b2ba5e2156cea00ba7395



More information about the pld-cvs-commit mailing list