Skip to content

Commit aaa2d92

Browse files
Jarkko Sakkinenshuahkh
authored andcommitted
Revert "Kernel selftests: tpm2: check for tpm support"
This reverts commit b32694c. 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]> Signed-off-by: Shuah Khan <[email protected]>
1 parent cdfe56d commit aaa2d92

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

tools/testing/selftests/tpm2/test_smoke.sh

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
11
#!/bin/bash
22
# SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
3-
self.flags = flags
43

5-
# Kselftest framework requirement - SKIP code is 4.
6-
ksft_skip=4
7-
8-
9-
if [ -f /dev/tpm0 ] ; then
10-
python -m unittest -v tpm2_tests.SmokeTest
11-
python -m unittest -v tpm2_tests.AsyncTest
12-
else
13-
exit $ksft_skip
14-
fi
4+
python -m unittest -v tpm2_tests.SmokeTest
5+
python -m unittest -v tpm2_tests.AsyncTest
156

167
CLEAR_CMD=$(which tpm2_clear)
178
if [ -n $CLEAR_CMD ]; then
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
#!/bin/bash
22
# SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
33

4-
# Kselftest framework requirement - SKIP code is 4.
5-
ksft_skip=4
6-
7-
if [ -f /dev/tpmrm0 ] ; then
8-
python -m unittest -v tpm2_tests.SpaceTest
9-
else
10-
exit $ksft_skip
11-
fi
4+
python -m unittest -v tpm2_tests.SpaceTest

0 commit comments

Comments
 (0)