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:
emellor@leeni.uk.xensource.com committed 2006-03-21 18:57:23 +01:00
1 parent af34eb43a1
commit 6ebfc91b5d
1 file changed
+1 -1
+1 -1
View File
@@ -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")
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.