![]() ("Launched background command in guest: %s" % test_s4_cmd) Raise error.TestError("Failed to launch '%s' as a background process" % + if session2.get_command_status(check_s4_cmd) != 0: if session2.get_command_status(check_s4_cmd): + # Make sure the background program is running as expectedĬheck_s4_cmd = params.get("check_s4_cmd") Session2 = kvm_test_utils.wait_for_login(vm) # If the program died after suspend, then fails this testcase. # Start up a program (tcpdump for linux & ping for Windows), as a flag. + time.sleep(float(params.get("services_up_timeout", 30))) + ("Waiting until all guest OS services are fully started.") time.sleep(params.get("services_up_timeout")) ("Wait until all guest OS services are fully started") Raise error.TestFail("Guest OS does not support S4") Logging.error("Failed to check if guest OS supports S4") Status = session.get_command_status(params.get("check_s4_support_cmd")) + ("Checking whether guest OS supports suspend to disk (S4).") ("Checking whether guest OS supports suspend to disk (S4)") Session = kvm_test_utils.wait_for_login(vm) Vm = kvm_test_utils.get_living_vm(env, params.get("main_vm")) + Suspend guest to disk, supports both Linux & Windows test: kvm test params: Dictionary with test -14,53 +14,62 def run_guest_s4(test, params, env): Suspend guest to disk,supports both Linux & Windows OSes. Kill_test_s4_cmd = taskkill /IM ping.exe /Fĭiff -git a/client/tests/kvm/tests/guest_s4.py b/client/tests/kvm/tests/guest_s4.py ![]() Set_s4_cmd = rundll32.exe PowrProf.dll, SetSuspendState + check_s4_cmd = tasklist | find /I "ping.exe" ![]() check_s4_cmd = tasklist | find /I "ping" test_s4_cmd = start /B ping -n 3000 localhost + set_s4_cmd = echo disk > /sys/power/stateĬheck_s4_support_cmd = powercfg /hibernate on + test_s4_cmd = "cd /tmp nohup tcpdump -q -t ip host localhost" + check_s4_support_cmd = grep -q disk /sys/power/state test_s4_cmd = "cd /tmp/ nohup tcpdump -q -t ip host localhost" check_s4_support_cmd = grep -q disk /sys/power/state 10:13 ` KVM test: corrections to guest_s4 Michael GoldishĠ siblings, 1 reply 3+ messages in threadįrom: Michael Goldish 10:13 UTC ( / raw) KVM test: VM.send_monitor_cmd() minor cleanup All of help / color / mirror / Atom feed * KVM test: VM.send_monitor_cmd() minor cleanup 10:13 Michael Goldish ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |