From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id D2C7D1B2AB for ; Wed, 9 Jan 2019 10:58:44 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jan 2019 01:58:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,457,1539673200"; d="scan'208";a="125565455" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by orsmga001.jf.intel.com with ESMTP; 09 Jan 2019 01:58:42 -0800 From: Peng Yuan To: dts@dpdk.org Cc: Peng Yuan Date: Wed, 9 Jan 2019 18:02:11 +0800 Message-Id: <1547028131-22824-1-git-send-email-yuan.peng@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH] tests: correct spelling errors 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, 09 Jan 2019 09:58:45 -0000 Correct spelling errors of TestSuite_vmdq.py. Signed-off-by: Peng Yuan diff --git a/tests/TestSuite_vmdq.py b/tests/TestSuite_vmdq.py index 10cb8e6..796a214 100644 --- a/tests/TestSuite_vmdq.py +++ b/tests/TestSuite_vmdq.py @@ -6,7 +6,6 @@ DPDK Test suite. Tests for vmdq. """ - import utils import re from etgen import IxiaPacketGenerator @@ -30,7 +29,6 @@ class TestVmdq(TestCase, IxiaPacketGenerator): """ Run at the start of each test suite. """ - self.tester.extend_external_packet_generator(TestVmdq, self) self.dut.send_expect("sed -i 's/CONFIG_RTE_MAX_QUEUES_PER_PORT=256/CONFIG_RTE_MAX_QUEUES_PER_PORT=1024/' ./config/common_base", "# ", 5) @@ -53,12 +51,10 @@ class TestVmdq(TestCase, IxiaPacketGenerator): out = self.dut.send_expect("make -C examples/vmdq", "#", 10) self.verify("Error" not in out, "Compilation error") - def validateApproxEqual(self, lines): """ Check that all the rx queue stats are within a 30% range. """ - minimum = 1000000 maximun = 0 @@ -85,7 +81,6 @@ class TestVmdq(TestCase, IxiaPacketGenerator): MAX queues is 128 queues/pools = 128/npools """ - self.current_frame_size = self.default_framesize self.dut_ports = self.dut.get_ports(self.nic) @@ -130,8 +125,8 @@ class TestVmdq(TestCase, IxiaPacketGenerator): def test_perf_vmdq_64pools_queues(self): """ - This function call " Npools_128queues" with differen number - of pools. Details see below. if not sure, set it as 8 pools. + This function call "Npools_128queues" with different number + of pools. Details see below. If not sure, set it as 8 pools. """ if self.nic in ("niantic", "springfountain"): self.Npools_128queues(64) @@ -144,9 +139,8 @@ class TestVmdq(TestCase, IxiaPacketGenerator): def test_perf_vmdq_performance(self): """ - Try different configuration and different packe size + Try different configuration and different packet size """ - self.tester.get_interface( self.tester.get_local_port(self.dut_ports[0])) @@ -240,7 +234,6 @@ class TestVmdq(TestCase, IxiaPacketGenerator): """ Change Ixia configuration """ - self.add_tcl_cmd("vlan config -mode vIncrement") self.add_tcl_cmd("vlan config -step 1") self.add_tcl_cmd("vlan config -repeat %d" % self.vlan_repeat) @@ -250,7 +243,7 @@ class TestVmdq(TestCase, IxiaPacketGenerator): def ether(self, port, src, dst, type): """ - Configure Ether protocal. + Configure Ether protocol. """ self.add_tcl_cmd("protocol config -ethernetType ethernetII") self.add_tcl_cmd('stream config -sa "%s"' % self.macToTclFormat(src)) @@ -258,5 +251,3 @@ class TestVmdq(TestCase, IxiaPacketGenerator): self.add_tcl_cmd('stream config -daRepeatCounter increment') self.add_tcl_cmd('stream config -daStep 1') self.add_tcl_cmd('stream config -numDA %d' % self.da_repeat) - - -- 2.7.4