From 780e9310173178d2489ed0d44e651efb63648cd6 Mon Sep 17 00:00:00 2001 From: lcharpentier-stm Date: Thu, 30 Nov 2023 10:51:11 +0100 Subject: [PATCH] test esys-pp-commands: update pp management Update the management of error on physical presence (command is skipped). A 'goto error' is added to skip the end of the test (it is not needed to check the Platform Authorization in case of Physical Presence not available). Signed-off-by: lcharpentier-stm --- test/integration/esys-pp-commands.int.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/integration/esys-pp-commands.int.c b/test/integration/esys-pp-commands.int.c index 51fd3651a..4fdd0eede 100644 --- a/test/integration/esys-pp-commands.int.c +++ b/test/integration/esys-pp-commands.int.c @@ -58,8 +58,9 @@ test_esys_pp_commands(ESYS_CONTEXT * esys_context) } if (r == (TPM2_RC_WARN | TPM2_RC_PP)) { - LOG_INFO("Command TPM2_PP_Commands requires physical presence."); - return EXIT_SUCCESS; + LOG_WARNING("Command TPM2_PP_Commands requires physical presence."); + failure_return = EXIT_SKIP; + goto error; } if (number_rc(r) == TPM2_RC_BAD_AUTH) {