From c9eb5b2760e29fa20485051d896f95414d448909 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Wed, 16 Aug 2023 11:10:11 +0200 Subject: [PATCH] Skip tests on i686 until we will make swtmp installable again for now, it circullarily depends on this package which had excludearch i686. --- python-tpm2-pytss.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python-tpm2-pytss.spec b/python-tpm2-pytss.spec index ff4695a..6a92157 100644 --- a/python-tpm2-pytss.spec +++ b/python-tpm2-pytss.spec @@ -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}