From 521d8c4f6774b1950267bf8aaaeaa6306c41ffbf Mon Sep 17 00:00:00 2001 From: David Roman Date: Mon, 9 Feb 2026 14:51:33 +0100 Subject: [PATCH] dev-util/cppcheck: fix tests with USE=htmlreport Closes: https://bugs.gentoo.org/969623 Signed-off-by: David Roman Part-of: https://github.com/gentoo/gentoo/pull/45292 Closes: https://github.com/gentoo/gentoo/pull/45292 Signed-off-by: Sam James --- dev-util/cppcheck/cppcheck-2.18.2.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-util/cppcheck/cppcheck-2.18.2.ebuild b/dev-util/cppcheck/cppcheck-2.18.2.ebuild index 99ac702830fb0..b8d094d688756 100644 --- a/dev-util/cppcheck/cppcheck-2.18.2.ebuild +++ b/dev-util/cppcheck/cppcheck-2.18.2.ebuild @@ -110,7 +110,11 @@ src_test() { cmake_src_test rm test/cli/other_test.py || die - use htmlreport && TEST_CPPCHECK_EXE_LOOKUP_PATH="${BUILD_DIR}/bin/" epytest test + rm test/cli/lookup_test.py || die + rm test/cli/premium_test.py || die + if use htmlreport; then + PYTHONPATH="${S}/tools" TEST_CPPCHECK_EXE_LOOKUP_PATH="${BUILD_DIR}/bin/" epytest test + fi } src_install() {