From 93030722b53cb38563c154e09c32e5e74c8613fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Sch=C3=A4fer?= Date: Wed, 23 Oct 2024 17:34:16 +0200 Subject: [PATCH] Run %check for TW only For full test coverage the anymarkup module must be installed. However the module is an optional module for kiwi and only required when running tests to reach the 100% code coverage. Unfortunately not all distros provide anymarkup which is the reason why I limited the %check execution to only TW for the moment. --- package/python-kiwi-spec-template | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/python-kiwi-spec-template b/package/python-kiwi-spec-template index 05876633885..39a2a304fc8 100644 --- a/package/python-kiwi-spec-template +++ b/package/python-kiwi-spec-template @@ -80,7 +80,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: kiwi-systemdeps BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-pip +%if 0%{?suse_version} > 1600 BuildRequires: python%{python3_pkgversion}-anymarkup-core +%endif BuildRequires: python%{python3_pkgversion}-toml BuildRequires: python%{python3_pkgversion}-xmltodict %if 0%{?fedora} || 0%{?suse_version} @@ -771,8 +773,10 @@ fi %check # install kiwi to userland and run the tests +%if 0%{?suse_version} > 1600 %pip_install dist/kiwi-%{version}-py3-none-any.whl cd test/unit && pytest +%endif %files -n kiwi-systemdeps-core # Empty metapackage