# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1223516283 25200
# Node ID 32b6d72c7eed7a92cfc82c2f6fda973885eb9fcc
# Parent 285bc0174fb36512228e1cfcaba2186a0aa112c5
[TEST] Fix a false positive in HostedResourcePool/01_forward.py
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 285bc0174fb3 -r 32b6d72c7eed
suites/libvirt-cim/cimtest/HostedResourcePool/01_forward.py
--- a/suites/libvirt-cim/cimtest/HostedResourcePool/01_forward.py Wed Oct 08 03:03:37 2008
-0700
+++ b/suites/libvirt-cim/cimtest/HostedResourcePool/01_forward.py Wed Oct 08 18:38:03 2008
-0700
@@ -67,7 +67,8 @@ def main():
else:
logger.error("No pool returned")
return FAIL
-
+
+ status = FAIL
for items in pool:
cname = items.classname
if cname.find("MemoryPool") >=0 and items['InstanceID'] ==
"MemoryPool/0":
@@ -80,6 +81,9 @@ def main():
if cname.find("DiskPool") >=0 and \
items['InstanceID'] == "DiskPool/%s" % default_pool_name:
status = PASS
+ if status != PASS:
+ logger.error("HostedResourcePool information error")
+ return FAIL
return status