tpm: selftest: cleanup after unseal with wrong auth/policy test
[linux-2.6-microblaze.git] / tools / testing / selftests / tpm2 / test_smoke.sh
index cb54ab6..8155c2e 100755 (executable)
@@ -3,3 +3,8 @@
 
 python -m unittest -v tpm2_tests.SmokeTest
 python -m unittest -v tpm2_tests.AsyncTest
+
+CLEAR_CMD=$(which tpm2_clear)
+if [ -n $CLEAR_CMD ]; then
+       tpm2_clear -T device
+fi