[Libvirt-cim] [PATCH] [TEST] Add MOF workaround in VirtualSystemSnapshotService 03 test

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Wed Jun 17 17:21:22 UTC 2009


# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1245259271 25200
# Node ID 7da229f8498e667eac773d4692f9a9c437b5c3ad
# Parent  9a2db4596db33348b860a0e2337e377f237b0692
[TEST] Add MOF workaround in VirtualSystemSnapshotService 03 test

This test case was generating invalid MOF syntax, which was causing sfcb
to seg fault (versions older than 1.3.4preview).

Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>

diff -r 9a2db4596db3 -r 7da229f8498e suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/03_create_snapshot.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/03_create_snapshot.py	Wed Jun 03 13:00:09 2009 -0700
+++ b/suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/03_create_snapshot.py	Wed Jun 17 10:21:11 2009 -0700
@@ -73,9 +73,11 @@
     
     #Override the additional instance values.  We only care about the key
     #values (eventhough CreateSnapshot takes a instance)
-    vsssc['SynchronousMethodsSupported'] = ""
-    vsssc['AynchronousMethodsSupported'] = ""
-    vsssc['SnapshotTypesSupported'] = ""
+    for p in vsssc.properties.values():
+        if p.name == "SynchronousMethodsSupported" or \
+           p.name == "AynchronousMethodsSupported" or \
+           p.name == "SnapshotTypesSupported":
+            p.value = None
 
     vsssc = inst_to_mof(vsssc)
 




More information about the Libvirt-cim mailing list