0b78c9e8c1
Python 2 is no longer supported by the Python upstream project, so upgrade TPM2 tests to Python 3. Fixed minor merge conflicts Shuah Khan <skhan@linuxfoundation.org> Signed-off-by: Pengfei Xu <pengfei.xu@intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
11 lines
254 B
Bash
Executable File
11 lines
254 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
|
|
|
|
# Kselftest framework requirement - SKIP code is 4.
|
|
ksft_skip=4
|
|
|
|
[ -e /dev/tpm0 ] || exit $ksft_skip
|
|
|
|
python3 -m unittest -v tpm2_tests.SmokeTest
|
|
python3 -m unittest -v tpm2_tests.AsyncTest
|