Skip tests on i686 until we will make swtmp installable again

for now, it circullarily depends on this package which had excludearch
    i686.
This commit is contained in:
Jakub Jelen 2023-08-16 11:10:11 +02:00
parent 822ccb3040
commit c9eb5b2760

View File

@ -23,7 +23,10 @@ BuildRequires: python3-pytest-xdist
BuildRequires: tpm2-tss-devel >= 2.0.0
BuildRequires: gcc
# for tests
%%ifarch i686
%else
BuildRequires: swtpm
%endif
BuildRequires: tpm2-tools
%global _description %{expand:
@ -66,7 +69,10 @@ Summary: %{summary}
# this test does not work for some reason on the s390x as it times out
%global testargs -k "not test_spi_helper_good"
%endif
%%ifarch i686
%else
%pytest --import-mode=append %{?!rhel:-n 1} %{?testargs}
%endif
%files -n python3-%{pypi_name} -f %{pyproject_files}