[Libvirt-cim] [PATCH] [Test] Fix ElementConforms/02_reverse.py with sblim-cmpi-base provider installed
yunguol at cn.ibm.com
yunguol at cn.ibm.com
Tue Dec 2 07:42:21 UTC 2008
# HG changeset patch
# User Guolian Yun <yunguol at cn.ibm.com>
# Date 1228203734 28800
# Node ID 5bd7b6bf455d719006acfb15c3b0bc4859d3f296
# Parent 5fb94ae83ed121d3b0ce54bde7e30175c2df6f70
[Test] Fix ElementConforms/02_reverse.py with sblim-cmpi-base provider installed
Signed-off-by: Guolian Yun <yunguol at cn.ibm.com>
diff -r 5fb94ae83ed1 -r 5bd7b6bf455d suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py
--- a/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Wed Nov 26 19:06:58 2008 -0800
+++ b/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Mon Dec 01 23:42:14 2008 -0800
@@ -159,12 +159,13 @@
if status != PASS:
cxml.undefine(server)
return status
-
- status = verify_profile(profs[0], exp_list[cn])
- if status != PASS:
- logger.error("Verification of profile instance failed")
- cxml.undefine(server)
- return FAIL
+
+ if cn != 'Linux_ComputerSystem':
+ status = verify_profile(profs[0], exp_list[cn])
+ if status != PASS:
+ logger.error("Verification of profile instance failed")
+ cxml.undefine(server)
+ return FAIL
except Exception, detail:
logger.error(CIM_ERROR_ASSOCIATORS, an)
More information about the Libvirt-cim
mailing list