Skip to contentSkip to conversation

proper cleanup in case of failure

PATCH Applied Stefan Berger 2 participants 2 messages Apr 6, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proper cleanup in case of failure

This adds proper cleanup in case of a failure.

xen-unstable.hg/tools/xm-test/tests/vtpm/03_vtpm-susp_res.py +1 -0
Index: root/xen-unstable.hg/tools/xm-test/tests/vtpm/03_vtpm-susp_res.py
===================================================================
@@ -47,6 +47,7 @@ except ConsoleError, e:
     FAIL(str(e))
 
 if re.search("No such file",run["output"]):
+    vtpm_cleanup(domName)
     FAIL("TPM frontend support not compiled into (domU?) kernel")
 
 console.closeConsole()
xen-unstable.hg/tools/xm-test/tests/vtpm/02_vtpm-cat_pcrs.py +1 -0
Index: root/xen-unstable.hg/tools/xm-test/tests/vtpm/02_vtpm-cat_pcrs.py
===================================================================
@@ -46,6 +46,7 @@ except ConsoleError, e:
     FAIL(str(e))
 
 if re.search("No such file",run["output"]):
+    vtpm_cleanup(domName)
     FAIL("TPM frontend support not compiled into (domU?) kernel")
 
 console.closeConsole()

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