Skip to content

Commit

Permalink
ESYS TEST: Update physical presence error test esys-pp-commands
Browse files Browse the repository at this point in the history
Test esys-pp-commands: Update management of physical presence error (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: Laurent Charpentier laurent.charpentier@st.com
  • Loading branch information
lcharpentier-stm authored Nov 28, 2023
1 parent ede63dd commit 3d31cee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/integration/esys-pp-commands.int.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3d31cee

Please sign in to comment.