Skip to contentSkip to conversation

vTPM test changes

PATCH New Stefan Berger 1 participant 1 message Mar 12, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vTPM test changes

Remove an uninitialized variable.
For some reason the 'ps aux' command does not see the process anymore (since some time on the weekend). Need to add 'COLUMNS=n'.

Signed-off-by Stefan Berger
xen-unstable.hg/tools/xm-test/tests/vtpm/09_vtpm-xapi.py +1 -1
Index: root/xen-unstable.hg/tools/xm-test/tests/vtpm/09_vtpm-xapi.py
===================================================================
@@ -91,7 +91,7 @@ if vtpm_uuid not in vm_vtpms:
 try:
     console = domain.start()
 except DomainError, e:
-    FAIL("Unable to create domain (%s)" % domName)
+    FAIL("Unable to create domain (%s)")
 
 try:
     console.sendInput("input")
xen-unstable.hg/tools/xm-test/tests/vtpm/vtpm_utils.py +2 -1
Index: root/xen-unstable.hg/tools/xm-test/tests/vtpm/vtpm_utils.py
===================================================================
@@ -8,7 +8,8 @@ from XmTestLib import *
 if ENABLE_HVM_SUPPORT:
     SKIP("vtpm tests not supported for HVM domains")
 
-status, output = traceCommand("ps aux | grep vtpm_manager | grep -v grep")
+status, output = traceCommand("COLUMNS=200 ; "
+                              "ps aux | grep vtpm_manager | grep -v grep")
 if output == "":
     SKIP("virtual TPM manager must be started to run this test; might "
          "need /dev/tpm0")

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel