Skip to content

Commit

Permalink
Run %check for TW only
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
schaefi committed Oct 23, 2024
1 parent e29ab4a commit 9303072
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package/python-kiwi-spec-template
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9303072

Please sign in to comment.