@@ -138,7 +148,9 @@ def main():
keys = { 'CreationClassName' : field, 'Name' : host_name }
ret_value = verify_err_fields(cxml, server, conn, keys, classname,
acn, msg, field, expr_values)
- cxml.destroy(server)
+ if ret_value == PASS:
You want to destroy and undefine the guest, even if ret_value != PASS.
+ cxml.cim_destroy(server)
+ cxml.undefine(server)
Also, there's a few places in this test where the test is returned but
the guest isn't destroyed / undefined. Can you fix those spots? Look
at lines 128, 136, and 144.
Thanks!
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin(a)linux.vnet.ibm.com