# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1208310638 25200
# Node ID dff3b93a6a9faaa73cdd0213d25a6da1680e4fed
# Parent 16d0609fdfaaff43564203dcdd61295baa52b44c
[TEST] update status description in Processor.02
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 16d0609fdfaa -r dff3b93a6a9f
suites/libvirt-cim/cimtest/Processor/02_definesys_get_procs.py
--- a/suites/libvirt-cim/cimtest/Processor/02_definesys_get_procs.py Tue Apr 15 18:46:05
2008 -0700
+++ b/suites/libvirt-cim/cimtest/Processor/02_definesys_get_procs.py Tue Apr 15 18:50:38
2008 -0700
@@ -39,6 +39,7 @@ from XenKvmLib.common_util import create
from XenKvmLib.common_util import create_using_definesystem
from XenKvmLib.devices import get_dom_proc_insts
from CimTest.Globals import log_param, logger, do_main
+from CimTest.ReturnCodes import PASS, FAIL
sup_types = ['Xen', 'KVM', 'XenFV']
@@ -49,28 +50,28 @@ def check_processors(procs):
if len(procs) != test_vcpus:
logger.error("%d vcpu instances were returned. %d expected",
len(procs), test_vcpus)
- return 1
+ return FAIL
for proc in procs:
if proc['SystemName'] != default_dom:
logger.error("Inst returned is for guesst %s, expected guest %s.",
procs['SystemName'], default_dom)
- return 1
+ return FAIL
devid = "%s/%s" % (default_dom, test_vcpus - 1)
if proc['DeviceID'] != devid:
logger.error("DeviceID %s does not match expected %s.",
procs['DeviceID'], devid)
- return 1
+ return FAIL
- return 0
+ return PASS
@do_main(sup_types)
def main():
options = main.options
log_param()
- status = 0
+ status = PASS
undefine_test_domain(default_dom, options.ip)
@@ -94,7 +95,7 @@ def main():
except Exception, detail:
logger.error("Exception: %s" % detail)
- status = 1
+ status = FAIL
finally:
undefine_test_domain(default_dom, options.ip)