[Libvirt-cim] [PATCH] [TEST] Proc RASD should not be null

Sharad Mishra snmishra at us.ibm.com
Mon Apr 4 19:16:52 UTC 2011


# HG changeset patch
# User Sharad Mishra <snmishra at us.ibm.com>
# Date 1301944448 25200
# Node ID 3a5abef07035297549e34542e7789bd4488a9e86
# Parent  a68509f68d565c55afa4d89942b55eb10374b32e
[TEST] Proc RASD should not be null.

This test was failing on libvirt 0.8 and higher as it did not like an empty proc rasd.

Signed-off-by: Sharad Mishra <snmishra at us.ibm.com>

diff -r a68509f68d56 -r 3a5abef07035 suites/libvirt-cim/cimtest/VirtualSystemManagementService/11_define_memrasdunits.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/11_define_memrasdunits.py	Thu Mar 31 14:06:44 2011 -0700
+++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/11_define_memrasdunits.py	Mon Apr 04 12:14:08 2011 -0700
@@ -55,8 +55,6 @@
             rasd['Limit'] = Uint64(value)
             rasd['AllocationUnits'] = units 
             rasd_list[mrasd_cn] = inst_to_mof(rasd)
-        else:
-            rasd_list[rasd.classname] = None 
 
     if rasd_list[mrasd_cn] is None:
         logger.error("Unable to get template MemRASD")




More information about the Libvirt-cim mailing list