[Libvirt-cim] [PATCH] [TEST] XFAIL for the 'VirtualQuantity' verification when the guest is runing
Deepti B Kalakeri
deeptik at linux.vnet.ibm.com
Wed Mar 4 10:59:02 UTC 2009
yunguol at cn.ibm.com wrote:
> # HG changeset patch
> # User Guolian Yun <yunguol at cn.ibm.com>
> # Date 1236164846 28800
> # Node ID 73b694026265b570d119395f9337148d9fcccd17
> # Parent b84b3ec0c3d74c2e3c858a0fd82ff615a94bf18b
> [TEST] XFAIL for the 'VirtualQuantity' verification when the guest is runing
>
>
> Tested for KVM/LXC with current sources and rpm
>
> Signed-off-by: Guolian Yun<yunguol at cn.ibm.com>
>
> diff -r b84b3ec0c3d7 -r 73b694026265 suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py
> --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py Tue Mar 03 09:05:40 2009 -0800
> +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py Wed Mar 04 03:07:26 2009 -0800
> @@ -42,11 +42,12 @@
> from XenKvmLib.classes import get_typed_class, inst_to_mof
> from CimTest.Globals import logger
> from XenKvmLib.const import do_main
> -from CimTest.ReturnCodes import FAIL, PASS
> +from CimTest.ReturnCodes import FAIL, PASS, XFAIL_RC
> from XenKvmLib.rasd import get_default_rasds
>
> sup_types = ['Xen', 'XenFV', 'KVM']
> test_dom = 'procrasd_persist_dom'
> +libvirt_bug = '00013'
>
> nvcpu = 3
> weight = 124
> @@ -92,7 +93,7 @@
> if proc_rasd["VirtualQuantity"] != nvcpu:
> logger.error("VirtualQuantity is %i, expected %i",
> proc_rasd["VirtualQuantity"], nvcpu)
> - return FAIL
> + return XFAIL_RC(libvirt_bug)
>
The problem is for KVM only hence you would need to check for the virt
type before determining what return you need to return.
> if proc_rasd["Limit"] != limit:
> logger.error("Limit is %i, expected %i",
> @@ -137,7 +138,7 @@
>
> dom_start = True
> status = check_proc_sched(server, prasd_cn)
> - if status != PASS:
> + if status != PASS and status != XFAIL_RC(libvirt_bug):
> raise Exception("CPU scheduling not set properly for the dom: "
> "%s" % test_dom)
>
>
same here.
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim
>
--
Thanks and Regards,
Deepti B. Kalakeri
IBM Linux Technology Center
deeptik at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list