mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
The patch fixes a problem when testing for device /dev/tpm0. The API
call os.path.exists() must be called instead of os.path.isfile(). Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
This commit is contained in:
1 parent
af34eb43a1
commit
6ebfc91b5d
1 file changed
+1
-1
@@ -8,7 +8,7 @@ from XmTestLib import *
|
||||
if ENABLE_HVM_SUPPORT:
|
||||
SKIP("vtpm tests not supported for HVM domains")
|
||||
|
||||
if not os.path.isfile("/dev/tpm0"):
|
||||
if not os.path.exists("/dev/tpm0"):
|
||||
SKIP("This machine has no hardware TPM; cannot run this test")
|
||||
|
||||
status, output = traceCommand("ps aux | grep vtpm_manager | grep -v grep")
|
||||
|
||||