From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E75F2A328D for ; Tue, 22 Oct 2019 11:52:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D20D31BE95; Tue, 22 Oct 2019 11:52:37 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 17A041BE93 for ; Tue, 22 Oct 2019 11:52:35 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Oct 2019 02:52:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,326,1566889200"; d="scan'208";a="203593848" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by FMSMGA003.fm.intel.com with ESMTP; 22 Oct 2019 02:52:35 -0700 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 22 Oct 2019 02:52:35 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 22 Oct 2019 02:52:35 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.96]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.119]) with mapi id 14.03.0439.000; Tue, 22 Oct 2019 17:52:33 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1]tests/TestSuite_multicast: update to new packet api Thread-Index: AQHVhL0EFOIcHviYjEOJmd8a0Mj+QKdmc1fg Date: Tue, 22 Oct 2019 09:52:33 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB450F5@SHSMSX101.ccr.corp.intel.com> References: <1571297407-82596-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1571297407-82596-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZTljZDI5Y2EtMDMxYi00YTQ3LWJiY2MtNGFhMWE5YTE3NTRlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUG1ZWE9CU0tSTzNDOXl3N0NRS3BjUUdQRFdURThCekZJVUU4alF5YXpTdm52MmVUSXRyTitmR3FyR0NVYmFXVSJ9 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] [PATCH V1]tests/TestSuite_multicast: update to new packet api 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > Sent: Thursday, October 17, 2019 3:30 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1]tests/TestSuite_multicast: update to new packet = api >=20 > update case to invoke new api >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_multicast.py | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/tests/TestSuite_multicast.py b/tests/TestSuite_multicast.py = index > bcdb0bc..b9dc4e8 100644 > --- a/tests/TestSuite_multicast.py > +++ b/tests/TestSuite_multicast.py > @@ -108,7 +108,7 @@ class TestMulticast(TestCase): > for rx_port in trafficFlow[flow][1].split(","): > sniff_src =3D "not 00:00:00:00:00:00" >=20 > - inst =3D > self.tester.tcpdump_sniff_packets(intf=3Dself.tester.get_interface(eval(r= x_port) > ), timeout=3D5, > + inst =3D > + self.tester.tcpdump_sniff_packets(intf=3Dself.tester.get_interface(eval= ( > + rx_port)), > count=3D1, filters=3D[{"layer": "ether", "config= ": {"src": sniff_src}}] ) > dmac =3D self.dut.get_mac_address(TGs[int(trafficFlo= w[flow][0][2])]) >=20 > @@ -119,8 +119,8 @@ class TestMulticast(TestCase): > time.sleep(5) # Wait for the sniffer to finish. >=20 > pkts =3D self.tester.load_tcpdump_sniff_packets(inst= ) > - for packet in pkts: > - result =3D str(packet.pktgen.pkt.show) > + for i in range(len(pkts)): > + result =3D str(pkts[i].show) >=20 > print result > self.verify("Ether" in result, "No packet receiv= ed") > -- > 1.8.3.1