[Libvirt-cim] [PATCH 1 of 4] [TEST] Moving the init_list() to rasd.py

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Mon Jun 16 01:44:49 UTC 2008


Deepti B. Kalakeri wrote:
> # HG changeset patch
> # User Deepti B. Kalakeri <deeptik at linux.vnet.ibm.com>
> # Date 1213262959 25200
> # Node ID 6b52040f1dd92532abca3a7698d406f1bc369c7a
> # Parent  b9100cec9aedb9f9243d753111a9a856e9480335
> [TEST] Moving the init_list()  to rasd.py
> 
> 1) Most of the tc use init_list() fn to verify the RASD values, hence moved it to rasd.py.
> 2) Added the logic to pick up the networktype used by the guest while creating to verify the RASD values.
> 
> Signed-off-by: Deepti B. Kalakeri <deeptik at linux.vnet.ibm.com>
> 
> diff -r b9100cec9aed -r 6b52040f1dd9 suites/libvirt-cim/lib/XenKvmLib/rasd.py
> --- a/suites/libvirt-cim/lib/XenKvmLib/rasd.py	Wed Jun 11 03:38:49 2008 -0700
> +++ b/suites/libvirt-cim/lib/XenKvmLib/rasd.py	Thu Jun 12 02:29:19 2008 -0700
> @@ -21,28 +21,96 @@
>  #
> 
>  import sys
> -from CimTest import Globals 
>  from CimTest.Globals import log_param, logger
>  from CimTest.ReturnCodes import FAIL, PASS
> +from XenKvmLib.const import CIM_REV
> +from XenKvmLib import vxml
> +from XenKvmLib.classes import get_typed_class
> +
> 
>  pasd_cn = 'ProcResourceAllocationSettingData'
>  nasd_cn = 'NetResourceAllocationSettingData'
>  dasd_cn = 'DiskResourceAllocationSettingData'
>  masd_cn = 'MemResourceAllocationSettingData'
> +global proc_cn, mem_cn, net_cn, disk_cn

No need to define these as global.

> +
> +
> +mem_units_rev = 529
> +proc_instid_rev = 590
> +
> +def rasd_init_list(vsxml, virt, test_disk, test_dom, test_mac, test_mem):
> +    """
> +        Creating the lists that will be used for comparisons.
> +    """
> +    global proc_cn, mem_cn, net_cn, disk_cn

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




More information about the Libvirt-cim mailing list