[Libvirt-cim] [PATCH] [TEST] Fixing the tc 40_RSC_start.py of ComputerSystem

Deepti B. Kalakeri deeptik at linux.vnet.ibm.com
Wed Jun 11 10:39:05 UTC 2008


# HG changeset patch
# User Deepti B. Kalakeri <deeptik at linux.vnet.ibm.com>
# Date 1213180729 25200
# Node ID b9100cec9aedb9f9243d753111a9a856e9480335
# Parent  254bc5464030a03b6f791fd49acd208f6ec1db23
[TEST] Fixing the tc 40_RSC_start.py of ComputerSystem.

Changes:

Patch 1 to 2:
-------------
Fixed the return value , setting FAIL instead of rc.

Patch 1:
--------
The tc was passing with false positive.
The parameters passed to check_attributes() were incorrect and fixed it.

Signed-off-by: Deepti B. Kalakeri <deeptik at linux.vnet.ibm.com>

diff -r 254bc5464030 -r b9100cec9aed suites/libvirt-cim/cimtest/ComputerSystem/40_RSC_start.py
--- a/suites/libvirt-cim/cimtest/ComputerSystem/40_RSC_start.py	Wed Jun 11 20:56:07 2008 +0800
+++ b/suites/libvirt-cim/cimtest/ComputerSystem/40_RSC_start.py	Wed Jun 11 03:38:49 2008 -0700
@@ -85,14 +85,14 @@ def main():
             raise Exception("Unable start dom %s using RequestedStateChange()", 
                             default_dom)
 
-        rc = check_attributes(domain_name, ip, options.virt)
+        rc = check_attributes(default_dom, options.ip, options.virt)
         if rc != 0:
             raise Exception("Attributes for %s not set as expected.",
                             default_dom)
 
     except Exception, detail:
         logger.error("Exception: %s", detail)
-        status = rc
+        status = FAIL
 
     undefine_test_domain(default_dom, options.ip, options.virt)
 




More information about the Libvirt-cim mailing list