aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/tpm2/test_smoke.sh
diff options
context:
space:
mode:
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2020-06-23 00:20:20 +0300
committerShuah Khan <skhan@linuxfoundation.org>2020-06-29 14:18:15 -0600
commit5be206eaac9a68992fc3b06fb5dd5634e323de86 (patch)
treeb2835186e9649378ce9fb7bfdfa3b2e642ce28fc /tools/testing/selftests/tpm2/test_smoke.sh
parentLinux 5.8-rc3 (diff)
downloadlinux-dev-5be206eaac9a68992fc3b06fb5dd5634e323de86.tar.xz
linux-dev-5be206eaac9a68992fc3b06fb5dd5634e323de86.zip
Revert "tpm: selftest: cleanup after unseal with wrong auth/policy test"
The reverted commit illegitly uses tpm2-tools. External dependencies are absolutely forbidden from these tests. There is also the problem that clearing is not necessarily wanted behavior if the test/target computer is not used only solely for testing. Fixes: a9920d3bad40 ("tpm: selftest: cleanup after unseal with wrong auth/policy test") Cc: Tadeusz Struk <tadeusz.struk@intel.com> Cc: stable@vger.kernel.org Cc: linux-integrity@vger.kernel.org Cc: linux-kselftest@vger.kernel.org Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/tpm2/test_smoke.sh')
-rwxr-xr-xtools/testing/selftests/tpm2/test_smoke.sh5
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/testing/selftests/tpm2/test_smoke.sh b/tools/testing/selftests/tpm2/test_smoke.sh
index 663062701d5a..79f8e9da5d21 100755
--- a/tools/testing/selftests/tpm2/test_smoke.sh
+++ b/tools/testing/selftests/tpm2/test_smoke.sh
@@ -8,8 +8,3 @@ ksft_skip=4
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