selftests: tpm: Use 'test -e' instead of 'test -f'
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 22 Jun 2020 21:20:21 +0000 (00:20 +0300)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 29 Jun 2020 20:19:23 +0000 (14:19 -0600)
commit88a16840f462f96d3a1808aff1d6479f87a02147
treebb1211d063edff9d2ef7274f5c4725a0c08d8b95
parent5be206eaac9a68992fc3b06fb5dd5634e323de86
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>
tools/testing/selftests/tpm2/test_smoke.sh
tools/testing/selftests/tpm2/test_space.sh