From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id B5A08530C for ; Wed, 27 Jul 2016 08:42:09 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP; 26 Jul 2016 23:42:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,428,1464678000"; d="scan'208";a="146128958" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga004.fm.intel.com with ESMTP; 26 Jul 2016 23:42:01 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id u6R6fxfJ020459; Wed, 27 Jul 2016 14:41:59 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id u6R6fvKQ005006; Wed, 27 Jul 2016 14:41:59 +0800 Received: (from yufengmx@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id u6R6fvaY005002; Wed, 27 Jul 2016 14:41:57 +0800 From: Yufen Mo To: dts@dpdk.org Cc: yufengmx Date: Wed, 27 Jul 2016 14:41:52 +0800 Message-Id: <1469601712-4962-2-git-send-email-yufengx.mo@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1469601712-4962-1-git-send-email-yufengx.mo@intel.com> References: <1469601712-4962-1-git-send-email-yufengx.mo@intel.com> Subject: [dts] [PATCH V2]Ethtool: update automation testing script X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2016 06:42:10 -0000 From: yufengmx *. close eeprom test case on FVL for FVL series firmware not supported *. reset ring parameter after ring parameter is used *. set testing content the same user space ethtool dumped Signed-off-by: yufengmx --- tests/TestSuite_userspace_ethtool.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py index c718a58..26044a3 100644 --- a/tests/TestSuite_userspace_ethtool.py +++ b/tests/TestSuite_userspace_ethtool.py @@ -128,8 +128,8 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): return 1518 def resize_linux_eeprom_file(self, dpdk_eeprom_file, linux_eeprom_file): - basePath = self.dut.base_dir - with open( basePath + dpdk_eeprom_file, 'rb') as fpDpdk: + basePath = os.sep + "root" + self.dut.base_dir[1:] + os.sep + with open( basePath + os.sep + dpdk_eeprom_file, 'rb') as fpDpdk: dpdk_bytes = fpDpdk.read() dpdk_length = len(dpdk_bytes) @@ -220,7 +220,10 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): portsinfo = [] ori_drivers = [] - + + if self.nic.startswith("fortville"): + return + for portid in range(len(self.ports)): self.dut.send_expect("regs %d regs_%d.bin" % (portid, portid), "EthApp>") portinfo = {'portid': portid, 'reg_file': 'regs_%d.bin' % portid} @@ -300,8 +303,8 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): """ Test ethtool app ring parameter getting and setting """ - self.dut.send_expect(self.cmd, "EthApp>", 60) for index in range(len(self.ports)): + self.dut.send_expect(self.cmd, "EthApp>", 60) port = self.ports[index] ori_rx_pkts, ori_tx_pkts = self.strip_portstats(port) _, rx_max, _, tx_max = self.strip_ringparam(index) @@ -315,8 +318,7 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): pkt.send_pkt(tx_port=intf) rx_pkts, tx_pkts = self.strip_portstats(index) self.verify(rx_pkts == ori_rx_pkts + 1, "Failed to forward after ring parameter changed") - - self.dut.send_expect("quit", "# ") + self.dut.send_expect("quit", "# ") def test_ethtool_vlan(self): """ -- 1.9.3