# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1211889137 25200
# Node ID 704d68b194d415c97678531930117d3d632ef5fa
# Parent 6a273db93afc6cd02702eb090251854ad74a7ff2
[TEST] Fixing tc 02_reverse.py of SettingDefineState.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 6a273db93afc -r 704d68b194d4
suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py
--- a/suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py Tue May 27 04:14:04 2008
-0700
+++ b/suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py Tue May 27 04:52:17 2008
-0700
@@ -59,6 +59,7 @@ from XenKvmLib import vxml
from XenKvmLib import vxml
from XenKvmLib.classes import get_typed_class, get_class_basename
from XenKvmLib.rasd import InstId_err
+from XenKvmLib.const import CIM_REV
sup_types = ['Xen', 'KVM', 'XenFV']
@@ -67,6 +68,8 @@ test_vcpus = 1
test_vcpus = 1
test_mem = 128
test_mac = "00:11:22:33:44:aa"
+proc_instid_rev = 590
+
def call_assoc(ip, inst, exp_id, ccn, virt):
@@ -189,6 +192,10 @@ def main():
'NetResourceAllocationSettingData' : '%s/%s' % (test_dom,
test_mac),
'DiskResourceAllocationSettingData' : '%s/%s' % (test_dom,
test_disk),
'MemResourceAllocationSettingData' : '%s/%s' % (test_dom,
'mem')}
+
+ if CIM_REV < proc_instid_rev :
+ rasd_devid['ProcResourceAllocationSettingData'] = "%s/%s" %
(test_dom, "0")
+
global dev_devid
dev_devid = {
'Processor' : '%s/%s' % (test_dom, test_vcpus-1),
Show replies by date