Skip to content

Commit

Permalink
test esys-pp-commands: update pp management
Browse files Browse the repository at this point in the history
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 <laurent.charpentier@st.com>
  • Loading branch information
lcharpentier-stm committed Nov 30, 2023
1 parent fcff6da commit 788a49c
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 788a49c

Please sign in to comment.