Revert "Kernel selftests: tpm2: check for tpm support"
Subsystems (3)
PATCH 1/1 Revert "Kernel selftests: tpm2: check for tpm support"
This reverts commit b32694cd0724d4ceca2c62cc7c3d3a8d1ffa11fc.
The original comment was neither reviewed nor tested. Thus, this the *only* possible action to take.
Cc Nikita Sobolev <[email protected]>
Signed-off-by Jarkko Sakkinen <[email protected]>
--- tools/testing/selftests/tpm2/test_smoke.sh | 13 ++----------- tools/testing/selftests/tpm2/test_space.sh | 9 +-------- 2 files changed, 3 insertions(+), 19 deletions(-)
tools/testing/selftests/tpm2/test_smoke.sh +2 -11
@@ -1,17 +1,8 @@ #!/bin/bash # SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) -self.flags = flags -# Kselftest framework requirement - SKIP code is 4. -ksft_skip=4 - - -if [ -f /dev/tpm0 ] ; then - python -m unittest -v tpm2_tests.SmokeTest - python -m unittest -v tpm2_tests.AsyncTest -else - exit $ksft_skip -fi +python -m unittest -v tpm2_tests.SmokeTest +python -m unittest -v tpm2_tests.AsyncTest CLEAR_CMD=$(which tpm2_clear) if [ -n $CLEAR_CMD ]; then
tools/testing/selftests/tpm2/test_space.sh +1 -8
@@ -1,11 +1,4 @@ #!/bin/bash # SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) -# Kselftest framework requirement - SKIP code is 4. -ksft_skip=4 - -if [ -f /dev/tpmrm0 ] ; then - python -m unittest -v tpm2_tests.SpaceTest -else - exit $ksft_skip -fi +python -m unittest -v tpm2_tests.SpaceTest
Signature · 1 line
2.25.1
Quoted 7 lines · Jarkko Sakkinen
This reverts commit
b32694cd0724d4ceca2c62cc7c3d3a8d1ffa11fc.The original comment was neither reviewed nor tested. Thus, this the *only* possible action to take.
Cc Nikita Sobolev <[email protected]>Signed-off-by Jarkko Sakkinen <[email protected]>
I've pushed the reverting commit to my master branch, not yet to next, which mirrors to linux-next.
/Jarkko