diff options
author | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2020-06-23 00:20:21 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2020-06-29 23:19:23 +0300 |
commit | 88a16840f462f96d3a1808aff1d6479f87a02147 (patch) | |
tree | bb1211d063edff9d2ef7274f5c4725a0c08d8b95 /tools/testing/selftests/tpm2/test_smoke.sh | |
parent | 5be206eaac9a68992fc3b06fb5dd5634e323de86 (diff) | |
download | linux-88a16840f462f96d3a1808aff1d6479f87a02147.tar.xz |
selftests: tpm: Use 'test -e' instead of 'test -f'
'test -f' is suitable only for *regular* files. Use 'test -e' instead.
Cc: Nikita Sobolev <Nikita.Sobolev@synopsys.com>
Cc: linux-integrity@vger.kernel.org
Cc: linux-kselftest@vger.kernel.org
Fixes: 5627f9cffee7 ("Kernel selftests: Add check if TPM devices are supported")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/tpm2/test_smoke.sh')
-rwxr-xr-x | tools/testing/selftests/tpm2/test_smoke.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/tpm2/test_smoke.sh b/tools/testing/selftests/tpm2/test_smoke.sh index 79f8e9da5d21..338d6b0272dc 100755 --- a/tools/testing/selftests/tpm2/test_smoke.sh +++ b/tools/testing/selftests/tpm2/test_smoke.sh @@ -4,7 +4,7 @@ # Kselftest framework requirement - SKIP code is 4. ksft_skip=4 -[ -f /dev/tpm0 ] || exit $ksft_skip +[ -e /dev/tpm0 ] || exit $ksft_skip python -m unittest -v tpm2_tests.SmokeTest python -m unittest -v tpm2_tests.AsyncTest |