From patchwork Wed Apr 7 00:03:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 90902 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 o3703p6O020291 for ; Wed, 7 Apr 2010 00:03:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932190Ab0DGADt (ORCPT ); Tue, 6 Apr 2010 20:03:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15078 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932085Ab0DGADs (ORCPT ); Tue, 6 Apr 2010 20:03:48 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3703lMi008986 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 6 Apr 2010 20:03:47 -0400 Received: from localhost.localdomain (vpn-8-241.rdu.redhat.com [10.11.8.241]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3703ikf002130; Tue, 6 Apr 2010 20:03:45 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues Subject: [PATCH] KVM test: Fix some typos on autotest run utility function Date: Tue, 6 Apr 2010 21:03:42 -0300 Message-Id: <1270598622-6244-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 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]); Wed, 07 Apr 2010 00:03:59 +0000 (UTC) diff --git a/client/tests/kvm/kvm_test_utils.py b/client/tests/kvm/kvm_test_utils.py index 6ba834a..f512044 100644 --- a/client/tests/kvm/kvm_test_utils.py +++ b/client/tests/kvm/kvm_test_utils.py @@ -298,12 +298,12 @@ def run_autotest(vm, session, control_path, timeout, test_name, outputdir): @param dest_dir: Destination dir for the contents """ basename = os.path.basename(remote_path) - logging.info("Extracting %s..." % basename) + logging.info("Extracting %s...", basename) (status, output) = session.get_command_status_output( "tar xjvf %s -C %s" % (remote_path, dest_dir)) if status != 0: logging.error("Uncompress output:\n%s" % output) - raise error.TestFail("Could not extract % on guest") + raise error.TestFail("Could not extract %s on guest" % basename) if not os.path.isfile(control_path): raise error.TestError("Invalid path to autotest control file: %s" % @@ -356,7 +356,7 @@ def run_autotest(vm, session, control_path, timeout, test_name, outputdir): raise error.TestFail("Could not copy the test control file to guest") # Run the test - logging.info("Running test '%s'..." % test_name) + logging.info("Running test '%s'...", test_name) session.get_command_output("cd %s" % autotest_path) session.get_command_output("rm -f control.state") session.get_command_output("rm -rf results/*") @@ -364,7 +364,7 @@ def run_autotest(vm, session, control_path, timeout, test_name, outputdir): status = session.get_command_status("bin/autotest control", timeout=timeout, print_func=logging.info) - logging.info("--------------End of test output ------------") + logging.info("------------- End of test output ------------") if status is None: raise error.TestFail("Timeout elapsed while waiting for autotest to " "complete")