[Libvirt-cim] [PATCH] [TEST] Modifying HostedDependency/04_reverse_errs.py tc to use cim_define() and cim_start(), cim_destroy()
Kaitlin Rupert
kaitlin at linux.vnet.ibm.com
Tue Mar 3 23:19:29 UTC 2009
> @@ -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 at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list