From 9507f405d21581729a60c75458a0f7e5f9277823 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 7 Aug 2023 19:30:15 +0200 Subject: [PATCH] Skip i686 arch and one test failing on s390x --- python-tpm2-pytss.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python-tpm2-pytss.spec b/python-tpm2-pytss.spec index d5952d4..933d54a 100644 --- a/python-tpm2-pytss.spec +++ b/python-tpm2-pytss.spec @@ -11,6 +11,8 @@ URL: https://github.com/tpm2-software/tpm2-pytss Source: %{pypi_source %{pypi_name}} Patch0: python-tpm2-pytss-1.2.0-openssl.patch +ExcludeArch: i686 + BuildRequires: python3-devel BuildRequires: python3-pytest %if %{undefined rhel} @@ -58,7 +60,11 @@ Summary: %{summary} %check %pyproject_check_import -%pytest --import-mode=append %{?!rhel:-n 1} +%ifarch s390x +# this test does not work for some reason on the s390x as it times out +%global testargs -k "not test_spi_helper_good" +%endif +%pytest --import-mode=append %{?!rhel:-n 1} %{?testargs} %files -n python3-%{pypi_name} -f %{pyproject_files}