Accepting request 1087675 from home:aplanas:branches:security

- Disable tests.  Some tests randomly fails, maybe dependening on the
  OBS worker assigned during the build (not confirmed)

OBS-URL: https://build.opensuse.org/request/show/1087675
OBS-URL: https://build.opensuse.org/package/show/security/tpm2.0-tools?expand=0&rev=104
This commit is contained in:
Alberto Planas 2023-05-17 14:30:51 +00:00 committed by Git OBS Bridge
parent ea39889dde
commit fc1a056e9d
2 changed files with 15 additions and 8 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed May 17 14:14:44 UTC 2023 - Alberto Planas Dominguez <aplanas@suse.com>
- Disable tests. Some tests randomly fails, maybe dependening on the
OBS worker assigned during the build (not confirmed)
-------------------------------------------------------------------
Thu Feb 16 14:28:55 UTC 2023 - Alberto Planas Dominguez <aplanas@suse.com>

View File

@ -18,7 +18,8 @@
%define _lto_cflags %{nil}
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64le
%bcond_without test
# Disable the tests for now in all architectures
%bcond_with test
%else
# ppc ppc64 s390x: some code (tpm2_command_header_from_bytes) depend
# on the endianness of the architecture:
@ -93,6 +94,13 @@ export PATH=$PATH:/usr/sbin:/usr/libexec/ibmtss
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%if %{with test}
%check
# Do the tests sequentially to kill all tpm_server instances
# https://github.com/tpm2-software/tpm2-tools/issues/3042
%make_build check
%endif
%files
%doc docs/README.md docs/CHANGELOG.md
%license docs/LICENSE
@ -104,11 +112,4 @@ find %{buildroot} -type f -name "*.la" -delete -print
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/*
%if %{with test}
%check
# Do the tests sequentially to kill all tpm_server instances
# https://github.com/tpm2-software/tpm2-tools/issues/3042
%make_build check
%endif
%changelog