KVM test: subtest stress_boot: Fix a bug that cloned VMs are not screendumped
PATCH 1/1 KVM test: subtest stress_boot: Fix a bug that cloned VMs are not screendumped
We just used vm.create() to create those cloned VMs whereas ignored catching screendumps of them. This patch fix this problem.
Signed-off-by Yolkfull Chow <[email protected]>
--- client/tests/kvm/tests/stress_boot.py | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)
client/tests/kvm/tests/stress_boot.py +3 -5
@@ -1,6 +1,6 @@ import logging, time from autotest_lib.client.common_lib import error -import kvm_subprocess, kvm_test_utils, kvm_utils +import kvm_subprocess, kvm_test_utils, kvm_utils, kvm_preprocessing def run_stress_boot(tests, params, env):
@@ -39,11 +39,9 @@ def run_stress_boot(tests, params, env): vm_params["address_index"] = str(address_index) curr_vm = vm.clone(vm_name, vm_params) kvm_utils.env_register_vm(env, vm_name, curr_vm) - params['vms'] += " " + vm_name - logging.info("Booting guest #%d" % num) - if not curr_vm.create(): - raise error.TestFail("Cannot create VM #%d" % num) + kvm_preprocessing.preprocess_vm(tests, vm_params, env, vm_name) + params['vms'] += " " + vm_name curr_vm_session = kvm_utils.wait_for(curr_vm.remote_login, 240, 0, 2) if not curr_vm_session:
Signature · 1 line
1.6.5.3