ia64/xen-unstable

changeset 9377:22f1618cf57c

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>
author emellor@leeni.uk.xensource.com
date Tue Mar 21 18:57:23 2006 +0100 (2006-03-21)
parents 5e5e56b5e751
children 4dec7a81f8f5
files tools/xm-test/tests/vtpm/vtpm_utils.py
line diff
     1.1 --- a/tools/xm-test/tests/vtpm/vtpm_utils.py	Tue Mar 21 15:40:54 2006 +0100
     1.2 +++ b/tools/xm-test/tests/vtpm/vtpm_utils.py	Tue Mar 21 18:57:23 2006 +0100
     1.3 @@ -8,7 +8,7 @@ from XmTestLib import *
     1.4  if ENABLE_HVM_SUPPORT:
     1.5      SKIP("vtpm tests not supported for HVM domains")
     1.6  
     1.7 -if not os.path.isfile("/dev/tpm0"):
     1.8 +if not os.path.exists("/dev/tpm0"):
     1.9      SKIP("This machine has no hardware TPM; cannot run this test")
    1.10  
    1.11  status, output = traceCommand("ps aux | grep vtpm_manager | grep -v grep")