summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/tpm2/test_smoke.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/tpm2/test_smoke.sh')
-rwxr-xr-xtools/testing/selftests/tpm2/test_smoke.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/tpm2/test_smoke.sh b/tools/testing/selftests/tpm2/test_smoke.sh
index cb54ab637ea6..8155c2ea7ccb 100755
--- a/tools/testing/selftests/tpm2/test_smoke.sh
+++ b/tools/testing/selftests/tpm2/test_smoke.sh
@@ -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