From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id E8610DE0 for ; Thu, 31 Aug 2017 10:07:14 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Aug 2017 01:06:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,451,1498546800"; d="scan'208";a="1167854609" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga001.jf.intel.com with ESMTP; 31 Aug 2017 01:06:58 -0700 From: "lu,peipei" To: dts@dpdk.org Cc: "lu,peipei" Date: Thu, 31 Aug 2017 16:08:04 +0800 Message-Id: <1504166884-105271-1-git-send-email-peipeix.lu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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: Thu, 31 Aug 2017 08:07:15 -0000 Some time get result need to get all the content of a datagram, the original 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..1611ade 100644 --- a/framework/tester.py +++ b/framework/tester.py @@ -489,7 +489,7 @@ class Tester(Crb): out = self.send_expect("cat scapyResult.txt", "# ") self.logger.info('SCAPY Result:\n' + out + '\n\n\n') - return out.rpartition('[')[0] + return out.rpartition('>>>')[0] def traffic_generator_throughput(self, portList, rate_percent=100, delay=5): """ -- 1.9.3