From patchwork Thu Dec 10 10:21:32 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yolkfull Chow X-Patchwork-Id: 66231 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nBAALbFt021506 for ; Thu, 10 Dec 2009 10:21:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758960AbZLJKV2 (ORCPT ); Thu, 10 Dec 2009 05:21:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758697AbZLJKV2 (ORCPT ); Thu, 10 Dec 2009 05:21:28 -0500 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 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nBAALYHJ026695 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 10 Dec 2009 05:21:34 -0500 Received: from localhost.localdomain (dhcp-65-181.nay.redhat.com [10.66.65.181]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nBAALVpT014214; Thu, 10 Dec 2009 05:21:32 -0500 From: Yolkfull Chow To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, 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> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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: