From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 6B72629D6 for ; Tue, 5 Sep 2017 04:37:47 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP; 04 Sep 2017 19:37:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,477,1498546800"; d="scan'208";a="897085655" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by FMSMGA003.fm.intel.com with ESMTP; 04 Sep 2017 19:37:46 -0700 Received: from fmsmsx123.amr.corp.intel.com (10.18.125.38) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 4 Sep 2017 19:37:46 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx123.amr.corp.intel.com (10.18.125.38) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 4 Sep 2017 19:37:46 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.39]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.117]) with mapi id 14.03.0319.002; Tue, 5 Sep 2017 10:37:44 +0800 From: "Lu, PeipeiX" To: "dts@dpdk.org" CC: "Lu, PeipeiX" Thread-Topic: [dts][PATCH V1] framework/tester: fix not get all the content of a datagram Thread-Index: AQHTIjBYAicd5ElY8Ue8rnfmwfkGJKKlmncg Date: Tue, 5 Sep 2017 02:37:43 +0000 Message-ID: References: <1504166884-105271-1-git-send-email-peipeix.lu@intel.com> In-Reply-To: <1504166884-105271-1-git-send-email-peipeix.lu@intel.com> Accept-Language: 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] [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: Tue, 05 Sep 2017 02:37:47 -0000 Hi yong Pls merge the patch to dts. Thanks peipei -----Original Message----- From: Lu, PeipeiX=20 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 Some time get result need to get all the content of a datagram, the origina= l code only get part of the content. Signed-off-by: lu,peipei --- framework/tester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/tester.py b/framework/tester.py index e7fb6bc..1611a= de 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, d= elay=3D5): """ -- 1.9.3