
# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1209103730 25200 # Node ID 498f88d6e556b82d163ade5c9dc35338c0eb8a14 # Parent 0b8c0247e9b8f8e7c26f25795a580284218c56e8 [TEST] branches the test based on the changeset revision Signed-off-by: Guolian Yun <yunguol@cn.ibm.com> diff -r 0b8c0247e9b8 -r 498f88d6e556 suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Wed Apr 23 19:56:59 2008 +0530 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Thu Apr 24 23:08:50 2008 -0700 @@ -55,6 +55,7 @@ from XenKvmLib.rasd import InstId_err from XenKvmLib.rasd import InstId_err from CimTest.Globals import logger, do_main from CimTest.ReturnCodes import PASS, FAIL +from XenKvmLib.const import CIM_REV sup_types = ['Xen', 'XenFV', 'KVM'] @@ -62,6 +63,7 @@ test_vcpus = 1 test_vcpus = 1 test_mem = 128 test_mac = "00:11:22:33:44:aa" +rev = 531 def check_rasd_values(id, exp_id): try: @@ -88,6 +90,9 @@ def assoc_values(ip, assoc_info, virt="X "disk_rasd" : '%s/%s' %(test_dom, test_disk), "mem_rasd" : '%s/%s' %(test_dom, "mem") } + if CIM_REV < rev: + rasd_list['proc_rasd'] = '%s/%s' %(test_dom, "0") + try: if len(assoc_info) <= 0: logger.error("No RASD instances returned")