[dts] [PATCH V1] framework/tester: fix not get all the content of a datagram
Lu, PeipeiX
peipeix.lu at intel.com
Tue Sep 5 04:37:43 CEST 2017
Hi yong
Pls merge the patch to dts. Thanks
peipei
-----Original Message-----
From: Lu, PeipeiX
Sent: Thursday, August 31, 2017 4:08 PM
To: dts at 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 original code only get part of the content.
Signed-off-by: lu,peipei <peipeix.lu at intel.com>
---
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
More information about the dts
mailing list