]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit63369b287223eb79b2e7541961614591d7215aba
treebb1211d063edff9d2ef7274f5c4725a0c08d8b95
parent63b85d33926c1ed959e5a1c144577104a07beaa0
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: e522a69a0dee ("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