
+1 On 01/14/2011 10:51 AM, Sharad Mishra wrote:
# HG changeset patch # User Sharad Mishra<snmishra@us.ibm.com> # Date 1295017609 28800 # Node ID 2c9689c31d42c2320ecca7a4283bd564c5a27737 # Parent a226c6d2bccad847da03d29746b8f2c821957517 [TEST] Updated this testcase to focus on pause/resume.
This test was running suspend and reboot which is not supported on all hypervisor types. So changed this test case to focus on pause and resume.
Signed-off-by: Sharad Mishra<snmishra@us.ibm.com>
diff -r a226c6d2bcca -r 2c9689c31d42 suites/libvirt-cim/cimtest/ComputerSystem/33_suspend_reboot.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/33_suspend_reboot.py Fri Jan 14 07:06:41 2011 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/33_suspend_reboot.py Fri Jan 14 07:06:49 2011 -0800 @@ -59,7 +59,7 @@ server = options.ip virt = options.virt
- tc_scen = ['Start', 'Suspend', 'Reboot'] + tc_scen = ['Start', 'Paused', 'Resume']
action_passed = PASS try: @@ -73,10 +73,10 @@ for action in tc_scen: if action == "Start": status = cxml.cim_start(server) - elif action == "Suspend": - status = cxml.cim_suspend(server) - elif action == "Reboot": - status = cxml.cim_reboot(server) + elif action == "Paused": + status = cxml.cim_pause(server) + elif action == "Resume": + status = cxml.cim_reset(server) else: raise Exception("Unexpected state change: %s" % action)
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim