From: Yolkfull Chow Subject: [Autotest] [PATCH] KVM test: subtest stress_boot: Fix a bug that cloned VMs are not screendumped Date: Thu, 10 Dec 2009 18:21:32 +0800 Message-ID: <1260440492-3793-1-git-send-email-yzhou@redhat.com> Cc: kvm@vger.kernel.org, Yolkfull Chow To: autotest@test.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:19139 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758055AbZLJKV1 (ORCPT ); Thu, 10 Dec 2009 05:21:27 -0500 Sender: kvm-owner@vger.kernel.org List-ID: 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 --- client/tests/kvm/tests/stress_boot.py | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/client/tests/kvm/tests/stress_boot.py b/client/tests/kvm/tests/stress_boot.py index 2a2e933..0b5ec02 100644 --- a/client/tests/kvm/tests/stress_boot.py +++ b/client/tests/kvm/tests/stress_boot.py @@ -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: -- 1.6.5.3