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 4FB3EA00C2; Thu, 23 Apr 2020 07:43:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 42A9D1D16A; Thu, 23 Apr 2020 07:43:44 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 07AF51BE9D for ; Thu, 23 Apr 2020 07:43:42 +0200 (CEST) IronPort-SDR: Is7Bx6CR5Qb131zihArbDRSdb2eLKL/izKNVfaoWbKi4AYYuNmux6zmnQum4T6l9Cs/MdXw9/S qb3OC04gv3gg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2020 22:43:42 -0700 IronPort-SDR: iSZxopU94tdDfyI+dTdTlkO8ys6/2lCvNavQ43Xe05d7YGr5s/xTSWMrnlA7NwtRykeME8BDek DWYY82YjV4NA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,305,1583222400"; d="scan'208";a="280276517" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga004.fm.intel.com with ESMTP; 22 Apr 2020 22:43:41 -0700 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 22 Apr 2020 22:42:56 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx122.amr.corp.intel.com (10.18.125.37) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 22 Apr 2020 22:42:56 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by shsmsx102.ccr.corp.intel.com ([169.254.2.138]) with mapi id 14.03.0439.000; Thu, 23 Apr 2020 13:42:53 +0800 From: "Tu, Lijuan" To: "Xie, WeiX" , "dts@dpdk.org" CC: "Xie, WeiX" Thread-Topic: [dts] [PATCH V1] tests/etag:etag set insertion off cmd fixed Thread-Index: AQHWF9BfR1l6SWdG5UifhR68YQY81KiGNGyA Date: Thu, 23 Apr 2020 05:42:52 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC0F0F5@SHSMSX101.ccr.corp.intel.com> References: <1587468279-308763-1-git-send-email-weix.xie@intel.com> In-Reply-To: <1587468279-308763-1-git-send-email-weix.xie@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-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/etag:etag set insertion off cmd fixed 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 Xie,WeiX > Sent: Tuesday, April 21, 2020 7:25 PM > To: dts@dpdk.org > Cc: Xie, WeiX > Subject: [dts] [PATCH V1] tests/etag:etag set insertion off cmd fixed >=20 > From: "Xie,WeiX" >=20 >=20 > Signed-off-by: Xie,WeiX > --- > tests/TestSuite_etag.py | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) >=20 > diff --git a/tests/TestSuite_etag.py b/tests/TestSuite_etag.py index > e095f82..f165c91 100644 > --- a/tests/TestSuite_etag.py > +++ b/tests/TestSuite_etag.py > @@ -342,19 +342,19 @@ class TestEtag(TestCase): > self.check_packet_transmission(pkt_types) > time.sleep(1) > pkts =3D self.tester.load_tcpdump_sniff_packets(inst) > - self.host_testpmd.execute_cmd('E-tag set insertion off port-tag-= id 1000 > port 0 vf 0') > + self.host_testpmd.execute_cmd('E-tag set insertion off port 0 > + vf 0') >=20 > # load sniff pcap file, check received packet's content > packetContentFile =3D "/tmp/packetContent.log" > - pcap_file =3D "/tmp/sniff_%s.pcap"%intf > - fp=3Dopen(packetContentFile,'w') > - backup_out=3Dsys.stdout > - sys.stdout=3Dfp > - pkts=3Drdpcap(pcap_file) > + pcap_file =3D "/tmp/tester/sniff_%s.pcap" % intf > + fp =3D open(packetContentFile, 'w') > + backup_out =3D sys.stdout > + sys.stdout =3D fp > + pkts =3D rdpcap(pcap_file) > pkts.show() > fp.close() > - sys.stdout=3Dbackup_out > - fp=3Dopen(packetContentFile,'r') > + sys.stdout =3D backup_out > + fp =3D open(packetContentFile, 'r') > out =3D fp.read() > fp.close() > if self.printFlag:# debug output > -- > 1.8.3.1