[Libvirt-cim] [PATCH] [TEST] Fixing and updating 01_forward.py of HostedService to work with/without sblim-base-provider

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Thu Oct 16 17:14:45 UTC 2008


> -    
> -    if len(ccn_list) != len(valid_services):
> -        logger.error("'%s' returned %d, expected %d", 
> -                     an, len(valid_services), len(ccn_list))
> +
> +    ccn_list = Set(ccn_list) 
> + 
> +    if (len(val_serv) - len(ccn_list)) != 0:
> +        if host_ccn == 'Linux_ComputerSystem':
> +            return XFAIL_RC(bug_sblim)

I'm not sure I understand the usage of Sets here..

if len(ccn_list) != len(valid_services):

Seems like the above would accomplish the same thing.  The usage of Sets 
isn't wrong.. but I'm not sure I see the need to use them in this case.

-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list