[Libvirt-cim] [PATCH] [TEST] Cleanup guest in RASD 05

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Wed Jun 3 21:11:49 UTC 2009


# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1244059209 25200
# Node ID da1f502f0498e683e722c36ebd8afb55b9cb82a8
# Parent  3fd6cfd13a00acefa93b6f13dabbf5ace91bda3d
[TEST] Cleanup guest in RASD 05

The guest needs to be cleaned up each time through the loop to ensure a
fresh guest is being defined.


Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>

diff -r 3fd6cfd13a00 -r da1f502f0498 suites/libvirt-cim/cimtest/RASD/05_disk_rasd_emu_type.py
--- a/suites/libvirt-cim/cimtest/RASD/05_disk_rasd_emu_type.py	Tue Jun 02 10:44:47 2009 -0700
+++ b/suites/libvirt-cim/cimtest/RASD/05_disk_rasd_emu_type.py	Wed Jun 03 13:00:09 2009 -0700
@@ -81,11 +81,13 @@
 
             if found_rasd is None:
                 raise Exception("DiskRASD for defined dom was not found")
+
+            cxml.undefine(options.ip)
+
     except Exception, detail:
         logger.error("Exception: %s", detail)           
         status = FAIL
-
-    cxml.undefine(options.ip)
+        cxml.undefine(options.ip)
            
     return status
 




More information about the Libvirt-cim mailing list