# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1226301001 28800
# Node ID 2280d7f2f7639ca6f7e12a110f086d45b53a89cb
# Parent 6591949e8afdddce6aa72022e33f0ce063ec60a1
[TEST] Fix VSSD/04_vssd_to_rasd.py
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 6591949e8afd -r 2280d7f2f763 suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py
--- a/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Wed Nov 05 22:03:48 2008 -0800
+++ b/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Sun Nov 09 23:10:01 2008 -0800
@@ -53,7 +53,8 @@
from XenKvmLib.classes import get_typed_class
from XenKvmLib import rasd
from XenKvmLib.rasd import verify_procrasd_values, verify_netrasd_values, \
-verify_diskrasd_values, verify_memrasd_values, rasd_init_list
+verify_diskrasd_values, verify_memrasd_values, verify_displayrasd_values, \
+rasd_init_list
from XenKvmLib.const import default_network_name
sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
@@ -174,6 +175,7 @@
netrasd = rasd_values_list['%s' %in_list['net']]
diskrasd = rasd_values_list['%s' %in_list['disk']]
memrasd = rasd_values_list['%s' %in_list['mem']]
+ displayrasd = rasd_values_list['%s' %in_list['display']]
try:
for rasd_instance in rasd_values_info:
@@ -186,6 +188,8 @@
status = verify_diskrasd_values(rasd_instance, diskrasd)
elif 'MemResourceAllocationSettingData' in CCName :
status = verify_memrasd_values(rasd_instance, memrasd)
+ elif 'GraphicsResourceAllocationSettingData' in CCName :
+ status = verify_displayrasd_values(rasd_instance, displayrasd)
else:
status = FAIL
if status != PASS:
Show replies by date