mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
Revert "Kernel selftests: tpm2: check for tpm support"
This reverts commit b32694cd07
.
The original comment was neither reviewed nor tested. Thus, this the
*only* possible action to take.
Cc: Nikita Sobolev <Nikita.Sobolev@synopsys.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
parent
cdfe56d901
commit
aaa2d92efe
2 changed files with 3 additions and 19 deletions
|
@ -1,17 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
|
# 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.SmokeTest
|
||||||
python -m unittest -v tpm2_tests.AsyncTest
|
python -m unittest -v tpm2_tests.AsyncTest
|
||||||
else
|
|
||||||
exit $ksft_skip
|
|
||||||
fi
|
|
||||||
|
|
||||||
CLEAR_CMD=$(which tpm2_clear)
|
CLEAR_CMD=$(which tpm2_clear)
|
||||||
if [ -n $CLEAR_CMD ]; then
|
if [ -n $CLEAR_CMD ]; then
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
|
# 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
|
python -m unittest -v tpm2_tests.SpaceTest
|
||||||
else
|
|
||||||
exit $ksft_skip
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in a new issue