Skip to content

Commit a9920d3

Browse files
tstrukJarkko Sakkinen
authored andcommitted
tpm: selftest: cleanup after unseal with wrong auth/policy test
Unseal with wrong auth or wrong policy test affects DA lockout and eventually causes the tests to fail with: "ProtocolError: TPM_RC_LOCKOUT: rc=0x00000921" when the tests run multiple times. Send tpm clear command after the test to reset the DA counters. Signed-off-by: Tadeusz Struk <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
1 parent 8f84bdd commit a9920d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/testing/selftests/tpm2/test_smoke.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33

44
python -m unittest -v tpm2_tests.SmokeTest
55
python -m unittest -v tpm2_tests.AsyncTest
6+
7+
CLEAR_CMD=$(which tpm2_clear)
8+
if [ -n $CLEAR_CMD ]; then
9+
tpm2_clear -T device
10+
fi

0 commit comments

Comments
 (0)