# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1209348083 25200
# Node ID ee201ab9f32a63a7f4ebbce48ff52d60465c3d13
# Parent 22ed2c7c77e8ff3d96b40f1e0db2a931b5a7c37e
[TEST] Add branch of MB versus KB for memory in HostSystme.02
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 22ed2c7c77e8 -r ee201ab9f32a
suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py
--- a/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Fri Apr 25 03:20:54
2008 -0700
+++ b/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Sun Apr 27 19:01:23
2008 -0700
@@ -58,6 +58,7 @@ from CimTest.ReturnCodes import PASS, FA
from CimTest.ReturnCodes import PASS, FAIL
from XenKvmLib.rasd import verify_procrasd_values, verify_netrasd_values, \
verify_diskrasd_values, verify_memrasd_values
+from XenKvmLib.const import CIM_REV
sup_types = ['Xen', 'KVM', 'XenFV']
@@ -66,6 +67,7 @@ test_vcpus = 1
test_vcpus = 1
test_mem = 128
test_mac = "00:11:22:33:44:aa"
+rev = 529
def init_list(vsxml, virt="Xen"):
"""
@@ -100,6 +102,8 @@ def init_list(vsxml, virt="Xen"):
"VirtualQuantity" : (test_mem *
1024),
}
}
+ if CIM_REV < rev:
+ rasd_values[mem_cn]['AllocationUnits'] = "MegaBytes"
return rasd_values
Show replies by date