From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id D034CF04 for ; Wed, 6 Sep 2017 05:28:56 +0200 (CEST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Sep 2017 20:28:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,482,1498546800"; d="scan'208";a="147944192" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga005.fm.intel.com with ESMTP; 05 Sep 2017 20:28:55 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 5 Sep 2017 20:28:55 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 5 Sep 2017 20:28:55 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.219]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.117]) with mapi id 14.03.0319.002; Wed, 6 Sep 2017 11:28:53 +0800 From: "Liu, Yong" To: "Lu, PeipeiX" , "dts@dpdk.org" CC: "Lu, PeipeiX" Thread-Topic: [dts] [PATCH V1] framework/tester: fix not get all the content of a datagram Thread-Index: AQHTJe/836+26jRJlUC2dUZLTTDPBKKnM/hg Date: Wed, 6 Sep 2017 03:28:53 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62E9BAFF@SHSMSX103.ccr.corp.intel.com> References: <1504166884-105271-1-git-send-email-peipeix.lu@intel.com> In-Reply-To: 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.0.0.116 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] framework/tester: fix not get all the content of a datagram 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, 06 Sep 2017 03:28:57 -0000 Peipei, Please give the sample which current parsing method can't work for it. Several test cases are still using scapy_get_result to strip the result. It is need to make sure that this patch won't affect all those test cases. Thanks, Marvin > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Lu, PeipeiX > Sent: Tuesday, September 05, 2017 10:38 AM > To: dts@dpdk.org > Cc: Lu, PeipeiX > Subject: Re: [dts] [PATCH V1] framework/tester: fix not get all the > content of a datagram >=20 > Hi yong > Pls merge the patch to dts. Thanks >=20 > peipei >=20 > -----Original Message----- > From: Lu, PeipeiX > Sent: Thursday, August 31, 2017 4:08 PM > To: dts@dpdk.org > Cc: Lu, PeipeiX > Subject: [dts][PATCH V1] framework/tester: fix not get all the content of > a datagram >=20 > Some time get result need to get all the content of a datagram, the > original code only get part of the content. >=20 > Signed-off-by: lu,peipei > --- > framework/tester.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/framework/tester.py b/framework/tester.py index > e7fb6bc..1611ade 100644 > --- a/framework/tester.py > +++ b/framework/tester.py > @@ -489,7 +489,7 @@ class Tester(Crb): > out =3D self.send_expect("cat scapyResult.txt", "# ") > self.logger.info('SCAPY Result:\n' + out + '\n\n\n') >=20 > - return out.rpartition('[')[0] > + return out.rpartition('>>>')[0] >=20 > def traffic_generator_throughput(self, portList, rate_percent=3D100, > delay=3D5): > """ > -- > 1.9.3