[Libvirt-cim] [PATCH 4 of 4] [TEST] Fix HostSystem-01_enum with sblim base provider installed
Kaitlin Rupert
kaitlin at linux.vnet.ibm.com
Wed Sep 24 02:02:52 UTC 2008
> +
> + status, linux_cs = check_sblim(options.ip)
> + if status == PASS:
> + name = 'Linux_ComputerSystem'
> + system = linux_cs[0]
> + else:
You'll want to verify that if check_sblim() passes, that enumerate
HostSystem does not return an instance.
> + try:
> + hs = enumclass.enumerate(options.ip, 'HostSystem', keys, options.virt)
> + name = get_typed_class(options.virt, 'HostSystem')
>
> - if len(hs) != 1:
> - logger.error("Expected 1 %s instance returned" % name)
> - return FAIL
> + if len(hs) != 1:
> + logger.error("Expected 1 %s instance returned" % name)
> + return FAIL
You'll want to return an XFAIL here.
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list