[Libvirt-cim] [PATCH] [TEST] Update SystemDevice-02_reverse.py to reflect computersystem.py changes

Deepti B Kalakeri deeptik at linux.vnet.ibm.com
Thu Sep 4 08:59:16 UTC 2008


+1 for me.
Tested on KVM with current sources.

Thanks and Regards,
Deepti.

yunguol at cn.ibm.com wrote:
> # HG changeset patch
> # User Guolian Yun <yunguol at cn.ibm.com>
> # Date 1220495178 25200
> # Node ID 7ca3731d266a611e55d6cbb5118fd95f76844ae6
> # Parent  3c04faaa67e001ecaf578a13da75f88235257576
> [TEST] Update SystemDevice-02_reverse.py to reflect computersystem.py changes
>
> Signed-off-by: Guolian Yun <yunguol at cn.ibm.com>
>
> diff -r 3c04faaa67e0 -r 7ca3731d266a suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py
> --- a/suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py	Tue Sep 02 23:10:52 2008 -0700
> +++ b/suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py	Wed Sep 03 19:26:18 2008 -0700
> @@ -27,7 +27,7 @@ import sys
>  import sys
>  from VirtLib import utils
>  from XenKvmLib import vxml
> -from XenKvmLib import computersystem
> +from XenKvmLib import enumclass
>  from XenKvmLib import assoc
>  from XenKvmLib import devices
>  from CimTest.Globals import logger, do_main
> @@ -91,8 +91,12 @@ def main():
>                  cxml.destroy(options.ip)
>                  cxml.undefine(options.ip)
>                  return FAIL
> -
> -            system = computersystem.system_of(options.ip, systems[0])
> +            
> +            keys = {
> +                    'Name': systems[0]['Name'],
> +                    'CreationClassName': systems[0]['CreationClassName']
> +                   }
> +            system = enumclass.getInstance(options.ip, 'ComputerSystem', keys, options.virt)
>          
>              if system.Name == test_dom:
>                  status = PASS
>
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim
>   




More information about the Libvirt-cim mailing list