From patchwork Mon Jun 15 12:16:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Goldish X-Patchwork-Id: 30307 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 n5FCE8AG015603 for ; Mon, 15 Jun 2009 12:14:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760547AbZFOMNj (ORCPT ); Mon, 15 Jun 2009 08:13:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759166AbZFOMNj (ORCPT ); Mon, 15 Jun 2009 08:13:39 -0400 Received: from mx2.redhat.com ([66.187.237.31]:36642 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757307AbZFOMNh (ORCPT ); Mon, 15 Jun 2009 08:13:37 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5FCDetD007611; Mon, 15 Jun 2009 08:13:40 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5FCDdiN022359; Mon, 15 Jun 2009 08:13:39 -0400 Received: from localhost.localdomain (dhcp-1-188.tlv.redhat.com [10.35.1.188]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5FCDVWX012172; Mon, 15 Jun 2009 08:13:38 -0400 From: Michael Goldish To: autotest@test.kernel.org, kvm@vger.kernel.org Cc: Michael Goldish Subject: [KVM-AUTOTEST PATCH 4/5] Modify run_autotest() in kvm_tests.py to use the new kvm_subprocess module. Date: Mon, 15 Jun 2009 15:16:38 +0300 Message-Id: In-Reply-To: <0464d44c116a544e672d48b2023ab0414d28c53d.1245067920.git.mgoldish@redhat.com> References: <1245068199-25679-1-git-send-email-mgoldish@redhat.com> <1139ad1a2cb9e1f86a7269feecc186114aeb5451.1245067920.git.mgoldish@redhat.com> <0464d44c116a544e672d48b2023ab0414d28c53d.1245067920.git.mgoldish@redhat.com> In-Reply-To: <1139ad1a2cb9e1f86a7269feecc186114aeb5451.1245067920.git.mgoldish@redhat.com> References: <1139ad1a2cb9e1f86a7269feecc186114aeb5451.1245067920.git.mgoldish@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Michael Goldish --- client/tests/kvm/kvm_tests.py | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/client/tests/kvm/kvm_tests.py b/client/tests/kvm/kvm_tests.py index 54d2a7a..ffe9116 100644 --- a/client/tests/kvm/kvm_tests.py +++ b/client/tests/kvm/kvm_tests.py @@ -1,6 +1,6 @@ import time, os, logging from autotest_lib.client.common_lib import utils, error -import kvm_utils, ppm_utils, scan_results +import kvm_utils, kvm_subprocess, ppm_utils, scan_results """ KVM test definitions. @@ -237,15 +237,16 @@ def run_autotest(test, params, env): cmd += " --exclude=*.pyc" cmd += " --exclude=*.svn" cmd += " --exclude=*.git" - kvm_utils.run_bg(cmd % (test.bindir, tarred_autotest_path), timeout=30) + kvm_subprocess.run_fg(cmd % (test.bindir, tarred_autotest_path), timeout=30) # tar the contents of bindir/autotest/tests/ cmd = "cd %s; tar cvjf %s %s/*" cmd += " --exclude=*.pyc" cmd += " --exclude=*.svn" cmd += " --exclude=*.git" - kvm_utils.run_bg(cmd % (os.path.join(test.bindir, "autotest", "tests"), - tarred_test_path, test_name), timeout=30) + kvm_subprocess.run_fg(cmd % + (os.path.join(test.bindir, "autotest", "tests"), + tarred_test_path, test_name), timeout=30) # Check if we need to copy autotest.tar.bz2 copy = False