From: "lu,peipei" <peipeix.lu@intel.com>
To: dts@dpdk.org
Cc: "lu,peipei" <peipeix.lu@intel.com>
Subject: [dts] [PATCH V1] framework/tester: fix not get all the content of a datagram
Date: Thu, 31 Aug 2017 16:08:04 +0800 [thread overview]
Message-ID: <1504166884-105271-1-git-send-email-peipeix.lu@intel.com> (raw)
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@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
next reply other threads:[~2017-08-31 8:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-31 8:08 lu,peipei [this message]
2017-09-05 2:37 ` Lu, PeipeiX
2017-09-06 3:28 ` Liu, Yong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1504166884-105271-1-git-send-email-peipeix.lu@intel.com \
--to=peipeix.lu@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).