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
|
@ -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.
|
python -m unittest -v tpm2_tests.SmokeTest
|
||||||
ksft_skip=4
|
python -m unittest -v tpm2_tests.AsyncTest
|
||||||
|
|
||||||
|
|
||||||
if [ -f /dev/tpm0 ] ; then
|
|
||||||
python -m unittest -v tpm2_tests.SmokeTest
|
|
||||||
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.
|
python -m unittest -v tpm2_tests.SpaceTest
|
||||||
ksft_skip=4
|
|
||||||
|
|
||||||
if [ -f /dev/tpmrm0 ] ; then
|
|
||||||
python -m unittest -v tpm2_tests.SpaceTest
|
|
||||||
else
|
|
||||||
exit $ksft_skip
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in New Issue