[Libvirt-cim] [PATCH 3 of 3] [TEST] Fix calls to create_using_definesystem() to support new param

Guo Lian Yun yunguol at cn.ibm.com
Mon Aug 11 06:20:43 UTC 2008


+1 for me.

Best,
Regards

Daisy (运国莲)
VSM Team, China Systems & Technology Labs (CSTL)
E-mail: yunguol at cn.ibm.com
TEL: (86)-21-60922403
Building 10, 399 Ke Yuan Rd, Pudong Shanghai, 201203


libvirt-cim-bounces at redhat.com wrote on 2008-08-09 00:25:23:

> # HG changeset patch
> # User Kaitlin Rupert <karupert at us.ibm.com>
> # Date 1218212683 25200
> # Node ID 55b78429571c289fee32af48898d4d7f23c1cbdd
> # Parent  adf7be19f36383916980d55d138761244cb3e389
> [TEST] Fix calls to create_using_definesystem() to support new param.
> 
> This call now how has a ref_config param.
> 
> Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>
> 
> diff -r adf7be19f363 -r 55b78429571c suites/libvirt-
> cim/cimtest/Memory/02_defgetmem.py
> --- a/suites/libvirt-cim/cimtest/Memory/02_defgetmem.py   Mon Jul 21
> 17:26:45 2008 -0700
> +++ b/suites/libvirt-cim/cimtest/Memory/02_defgetmem.py   Fri Aug 08
> 09:24:43 2008 -0700
> @@ -64,8 +64,11 @@
> 
>      undefine_test_domain(default_dom, options.ip)
> 
> +
>      try:
> -        rc = create_using_definesystem(default_dom, options.ip, 
> None, None, options.virt)
> +        rc = create_using_definesystem(default_dom, options.ip, 
params=None,
> +                                       ref_config='', exp_err=None, 
> +                                       virt=options.virt)
>          if rc != 0:
>              raise Exception("Unable to create domain %s using 
> DefineSys()"  % default_dom)
> 
> diff -r adf7be19f363 -r 55b78429571c suites/libvirt-
> cim/cimtest/Processor/02_definesys_get_procs.py
> --- a/suites/libvirt-cim/cimtest/Processor/02_definesys_get_procs.py
> Mon Jul 21 17:26:45 2008 -0700
> +++ b/suites/libvirt-cim/cimtest/Processor/02_definesys_get_procs.py
> Fri Aug 08 09:24:43 2008 -0700
> @@ -75,9 +75,9 @@
>      undefine_test_domain(default_dom, options.ip)
> 
>      try:
> -        rc = create_using_definesystem(default_dom, options.ip, 
> -                                       None, None, 
> -                                       options.virt)
> +        rc = create_using_definesystem(default_dom, options.ip, 
params=None,
> +                                       ref_config=' ', exp_err=None, 
> +                                       virt=options.virt)
>          if rc != 0:
>              raise Exception("Unable create domain %s using 
DefineSystem()" \
>                              % default_dom)
> diff -r adf7be19f363 -r 55b78429571c suites/libvirt-
> cim/cimtest/VirtualSystemManagementService/03_definesystem_ess.py
> --- a/suites/libvirt-
> cim/cimtest/VirtualSystemManagementService/03_definesystem_ess.py 
> Mon Jul 21 17:26:45 2008 -0700
> +++ b/suites/libvirt-
> cim/cimtest/VirtualSystemManagementService/03_definesystem_ess.py 
> Fri Aug 08 09:24:43 2008 -0700
> @@ -52,8 +52,8 @@
>                 'exp_desc' : exp_desc
>                }
> 
> -    rc = create_using_definesystem(dname, options.ip,
> -                                   params, exp_err, virt=options.virt)
> +    rc = create_using_definesystem(dname, options.ip, params, 
ref_config=' ',
> +                                   exp_err=exp_err, virt=options.virt)
> 
>      if rc != PASS:
>          logger.error('DefineSystem should NOT return OK with a 
> wrong ss input')
> diff -r adf7be19f363 -r 55b78429571c suites/libvirt-
> cim/cimtest/VirtualSystemManagementService/04_definesystem_ers.py
> --- a/suites/libvirt-
> cim/cimtest/VirtualSystemManagementService/04_definesystem_ers.py 
> Mon Jul 21 17:26:45 2008 -0700
> +++ b/suites/libvirt-
> cim/cimtest/VirtualSystemManagementService/04_definesystem_ers.py 
> Fri Aug 08 09:24:43 2008 -0700
> @@ -51,8 +51,9 @@
>                 'exp_desc' : exp_desc
>                }
> 
> -    rc = create_using_definesystem(dname, options.ip,
> -                                   params, exp_err, virt=options.virt)
> +
> +    rc = create_using_definesystem(dname, options.ip, params, 
ref_config=' ',
> +                                   exp_err=exp_err, virt=options.virt)
> 
>      if rc != PASS:
>          logger.error('DefineSystem should NOT return OK with a 
> wrong ss input')
> 
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20080811/d42cbdba/attachment.htm>


More information about the Libvirt-cim mailing list