From patchwork Fri Jan 7 15:21:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 464111 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p07FLOAV027837 for ; Fri, 7 Jan 2011 15:21:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753960Ab1AGPVR (ORCPT ); Fri, 7 Jan 2011 10:21:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:13591 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753888Ab1AGPVP (ORCPT ); Fri, 7 Jan 2011 10:21:15 -0500 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 p07FLCvK005795 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 7 Jan 2011 10:21:12 -0500 Received: from freedom.redhat.com (vpn-9-136.rdu.redhat.com [10.11.9.136]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p07FLAO5023791; Fri, 7 Jan 2011 10:21:11 -0500 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues Subject: [PATCH] KVM test: Fix typos in ethtool Date: Fri, 7 Jan 2011 13:21:09 -0200 Message-Id: <1294413669-5497-1-git-send-email-lmr@redhat.com> 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.6 (demeter1.kernel.org [140.211.167.41]); Fri, 07 Jan 2011 15:21:25 +0000 (UTC) diff --git a/client/tests/kvm/tests/ethtool.py b/client/tests/kvm/tests/ethtool.py index 011df29..9708497 100644 --- a/client/tests/kvm/tests/ethtool.py +++ b/client/tests/kvm/tests/ethtool.py @@ -104,11 +104,11 @@ def run_ethtool(test, params, env): if src == "guest": session.cmd_output(dd_cmd, timeout=360) tcpdump_cmd += " and src %s" % guest_ip - copy_files_fun = vm.copy_files_from + copy_files_from = vm.copy_files_from else: s, o = commands.getstatusoutput(dd_cmd) tcpdump_cmd += " and dst %s" % guest_ip - copy_files_fun = vm.copy_files_to + copy_files_from = vm.copy_files_to if s != 0: return (False, "Fail to create file by dd, cmd: %s" % dd_cmd) @@ -125,7 +125,7 @@ def run_ethtool(test, params, env): logging.info("Start to transfer file") try: - copy_files_fun(filename, filename): + copy_files_from(filename, filename) except kvm_utils.SCPError, e: return (False, "File transfer failed (%s)" % e) logging.info("Transfer file completed")