|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-changelog
[Xen-changelog] The patch fixes a problem when testing for device	/dev/t 
| # HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 22f1618cf57cc4f0ffc2a19fea6c25c7b1f2c83a
# Parent  5e5e56b5e7516c0569b766a52079595e4ff1b955
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@xxxxxxxxxx>
diff -r 5e5e56b5e751 -r 22f1618cf57c tools/xm-test/tests/vtpm/vtpm_utils.py
--- a/tools/xm-test/tests/vtpm/vtpm_utils.py    Tue Mar 21 14:40:54 2006
+++ b/tools/xm-test/tests/vtpm/vtpm_utils.py    Tue Mar 21 17:57:23 2006
@@ -8,7 +8,7 @@
 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")
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
 | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | 
[Xen-changelog] The patch fixes a problem when testing for device	/dev/tpm0. The API,
Xen patchbot -unstable <=
 |  |  | 
  
    |  |  |