[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] The patch fixes a problem when testing for device /dev/tpm0. The API



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.