From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 2A6BDFFA for ; Fri, 3 Jul 2015 08:24:49 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 02 Jul 2015 23:24:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,398,1432623600"; d="scan'208";a="757728402" Received: from pgsmsx105.gar.corp.intel.com ([10.221.44.96]) by orsmga002.jf.intel.com with ESMTP; 02 Jul 2015 23:24:47 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by PGSMSX105.gar.corp.intel.com (10.221.44.96) with Microsoft SMTP Server (TLS) id 14.3.224.2; Fri, 3 Jul 2015 14:23:10 +0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.46]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.168]) with mapi id 14.03.0224.002; Fri, 3 Jul 2015 14:23:09 +0800 From: "Liu, Yong" To: "Xu, HuilongX" , "dts@dpdk.org" Thread-Topic: [dts] fix case test_whitelist_add_remove_mac_address failed for fovtille NIC Thread-Index: AQHQs6lmDYMAnbGGuE6yREr65LBeLp3JShjw Date: Fri, 3 Jul 2015 06:23:08 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10E57D1D@SHSMSX103.ccr.corp.intel.com> References: <1435719301-16879-1-git-send-email-huilongx.xu@intel.com> In-Reply-To: <1435719301-16879-1-git-send-email-huilongx.xu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] fix case test_whitelist_add_remove_mac_address failed for fovtille NIC 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: Fri, 03 Jul 2015 06:24:50 -0000 Applied, thanks. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of huilongx,xu > Sent: Wednesday, July 01, 2015 10:55 AM > To: dts@dpdk.org > Subject: [dts] fix case test_whitelist_add_remove_mac_address failed for > fovtille NIC >=20 > From: huilong xu >=20 >=20 > Signed-off-by: huilong xu > --- > tests/TestSuite_whitelist.py | 22 ++++++++++++---------- > 1 files changed, 12 insertions(+), 10 deletions(-) >=20 > diff --git a/tests/TestSuite_whitelist.py b/tests/TestSuite_whitelist.py > index 480589c..3e87b81 100644 > --- a/tests/TestSuite_whitelist.py > +++ b/tests/TestSuite_whitelist.py > @@ -58,6 +58,7 @@ class TestWhitelist(TestCase): > self.pmdout =3D PmdOutput(self.dut) > self.pmdout.start_testpmd("Default", "--portmask=3D%s" % portMas= k) > self.dut.send_expect("set verbose 1", "testpmd> ") > + self.dut.send_expect("start", "testpmd> ") >=20 > # get dest address from self.target port > out =3D self.dut.send_expect("show port info %d" % self.dutPorts= [0], > "testpmd> ") > @@ -97,15 +98,16 @@ class TestWhitelist(TestCase): > # initialise first port without promiscuous mode > fake_mac_addr =3D "01:01:01:00:00:00" > portid =3D self.dutPorts[0] > + txportid =3D self.dutPorts[1] > self.dut.send_expect("set promisc %d off" % portid, "testpmd> ") >=20 > - out =3D self.dut.send_expect("show port stats %d" % portid, > "testpmd> ") > - pre_rxpkt =3D dts.regexp(out, "RX-packets: ([0-9]+)") > + out =3D self.dut.send_expect("show port stats %d" % txportid, > "testpmd> ") > + pre_rxpkt =3D dts.regexp(out, "TX-packets: ([0-9]+)") >=20 > # send one packet with the portid MAC address > self.whitelist_send_packet(portid, self.dest) > - out =3D self.dut.send_expect("show port stats %d" % portid, > "testpmd> ") > - cur_rxpkt =3D dts.regexp(out, "RX-packets: ([0-9]+)") > + out =3D self.dut.send_expect("show port stats %d" % txportid, > "testpmd> ") > + cur_rxpkt =3D dts.regexp(out, "TX-packets: ([0-9]+)") > # check the packet increase > self.verify(int(cur_rxpkt) =3D=3D int(pre_rxpkt) + > self.frames_to_send, > "Packet has not been received on default address") > @@ -114,8 +116,8 @@ class TestWhitelist(TestCase): > self.whitelist_send_packet(portid, fake_mac_addr) >=20 > pre_rxpkt =3D cur_rxpkt > - out =3D self.dut.send_expect("show port stats %d" % portid, > "testpmd> ") > - cur_rxpkt =3D dts.regexp(out, "RX-packets: ([0-9]+)") > + out =3D self.dut.send_expect("show port stats %d" % txportid, > "testpmd> ") > + cur_rxpkt =3D dts.regexp(out, "TX-packets: ([0-9]+)") >=20 > # check the packet DO NOT increase > self.verify(int(cur_rxpkt) =3D=3D int(pre_rxpkt), > @@ -127,8 +129,8 @@ class TestWhitelist(TestCase): > self.whitelist_send_packet(portid, fake_mac_addr) >=20 > pre_rxpkt =3D cur_rxpkt > - out =3D self.dut.send_expect("show port stats %d" % portid, > "testpmd> ") > - cur_rxpkt =3D dts.regexp(out, "RX-packets: ([0-9]+)") > + out =3D self.dut.send_expect("show port stats %d" % txportid, > "testpmd> ") > + cur_rxpkt =3D dts.regexp(out, "TX-packets: ([0-9]+)") >=20 > # check the packet increase > self.verify(int(cur_rxpkt) =3D=3D int(pre_rxpkt) + > self.frames_to_send, > @@ -141,8 +143,8 @@ class TestWhitelist(TestCase): > self.whitelist_send_packet(portid, fake_mac_addr) >=20 > pre_rxpkt =3D cur_rxpkt > - out =3D self.dut.send_expect("show port stats %d" % portid, > "testpmd> ") > - cur_rxpkt =3D dts.regexp(out, "RX-packets: ([0-9]+)") > + out =3D self.dut.send_expect("show port stats %d" % txportid, > "testpmd> ") > + cur_rxpkt =3D dts.regexp(out, "TX-packets: ([0-9]+)") >=20 > # check the packet increase > self.verify(int(cur_rxpkt) =3D=3D int(pre_rxpkt), > -- > 1.7.4.4