From: Michael Goldish <[email protected]> 'cmd_reboot' is a VM param, so get it using vm.get_params().get("cmd_reboot"). Currently it is taken from the test params. This is a mistake.
Signed-off-by: Michael Goldish <[email protected]> diff --git a/client/tests/kvm_runtest_2/kvm_tests.py b/client/tests/kvm_runtest_2/kvm_tests.py index 8825884..9733dc1 100644 --- a/client/tests/kvm_runtest_2/kvm_tests.py +++ b/client/tests/kvm_runtest_2/kvm_tests.py @@ -25,7 +25,8 @@ def run_boot(test, params, env): kvm_log.info("Logged in") if params.get("reboot") == "yes": - session.sendline(params.get("cmd_reboot")) + # Send the VM's reboot command + session.sendline(vm.get_params().get("cmd_reboot")) kvm_log.info("Reboot command sent; waiting for guest to go down...") if not kvm_utils.wait_for(lambda: not session.is_responsive(), 120, 0, 1): -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
