[packages/syslog-ng] - tests running fixes (but otel tests fail for me)

qboosh qboosh at pld-linux.org
Thu Jul 23 07:57:52 CEST 2026


commit 4260f3fd915103ba1c1747d5495b877175d939df
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Jul 23 07:58:00 2026 +0200

    - tests running fixes (but otel tests fail for me)

 syslog-ng.spec | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/syslog-ng.spec b/syslog-ng.spec
index ecdece8..d151983 100644
--- a/syslog-ng.spec
+++ b/syslog-ng.spec
@@ -115,6 +115,7 @@ BuildRequires:	python3
 %{?with_python:BuildRequires:	python3-devel >= 1:3.2}
 BuildRequires:	python3-pep8
 BuildRequires:	python3-ply
+BuildRequires:	python3-pytest
 BuildRequires:	python3-pytest-mock
 BuildRequires:	python3-requests
 BuildRequires:	tzdata
@@ -496,9 +497,10 @@ done
 %{__make}
 
 %if %{with tests}
-LD_LIBRARY_PATH=$(find $PWD -name '*.so*' -printf "%h:")
-PYTHONPATH=$(pwd)/tests/functional
-export LD_LIBRARY_PATH PYTHONPATH
+export LD_LIBRARY_PATH=$(find $PWD -name '*.so*' -printf "%h:")
+export PYTHONPATH=$(pwd)/tests/functional
+export PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+export PYTEST_PLUGINS=pytest_mock.plugin
 if ! %{__make} check; then
 	cat test-suite.log
 	exit 1
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/syslog-ng.git/commitdiff/4260f3fd915103ba1c1747d5495b877175d939df



More information about the pld-cvs-commit mailing list