xen/xm-test-cleanup.diff

15 lines
528 B
Diff
Raw Normal View History

Index: xen-3.3.0-testing/tools/xm-test/tests/save/01_save_basic_pos.py
===================================================================
--- xen-3.3.0-testing.orig/tools/xm-test/tests/save/01_save_basic_pos.py
+++ xen-3.3.0-testing/tools/xm-test/tests/save/01_save_basic_pos.py
@@ -35,3 +35,9 @@ if s != 0:
# Make sure it's gone
if isDomainRunning(domain.getName()):
FAIL("Domain still running after save!")
+
+# Clean up
+try:
+ s, o = traceCommand("xm delete %s" % domain.getName(), timeout=30)
+except:
+ pass