From patchwork Mon Apr 26 10:04:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Wang X-Patchwork-Id: 95035 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3QA0EE3010512 for ; Mon, 26 Apr 2010 10:00:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753770Ab0DZJ7l (ORCPT ); Mon, 26 Apr 2010 05:59:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23926 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753715Ab0DZJ7k (ORCPT ); Mon, 26 Apr 2010 05:59:40 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3Q9xdsu024509 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 26 Apr 2010 05:59:39 -0400 Received: from localhost.localdomain ([10.66.91.25]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3Q9xbeX018075; Mon, 26 Apr 2010 05:59:38 -0400 Subject: [PATCH 8/9] KVM test: Create the background threads before calling process() To: autotest@test.kernel.org, lmr@redhat.com From: Jason Wang Cc: kvm@vger.kernel.org Date: Mon, 26 Apr 2010 18:04:26 +0800 Message-ID: <20100426100426.26268.93216.stgit@localhost.localdomain> In-Reply-To: <20100426095656.26268.50549.stgit@localhost.localdomain> References: <20100426095656.26268.50549.stgit@localhost.localdomain> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 26 Apr 2010 10:00:17 +0000 (UTC) diff --git a/client/tests/kvm/kvm_preprocessing.py b/client/tests/kvm/kvm_preprocessing.py index 50d0e35..73e835a 100644 --- a/client/tests/kvm/kvm_preprocessing.py +++ b/client/tests/kvm/kvm_preprocessing.py @@ -257,9 +257,6 @@ def preprocess(test, params, env): int(params.get("pre_command_timeout", "600")), params.get("pre_command_noncritical") == "yes") - # Preprocess all VMs and images - process(test, params, env, preprocess_image, preprocess_vm) - # Start the screendump thread if params.get("take_regular_screendumps") == "yes": logging.debug("Starting screendump thread") @@ -278,6 +275,8 @@ def preprocess(test, params, env): args=(test, params, env)) _serialdump_thread.start() + # Preprocess all VMs and images + process(test, params, env, preprocess_image, preprocess_vm) def postprocess(test, params, env):