From: Phil Yang <phil.yang@arm.com>
To: dts@dpdk.org
Cc: nd@arm.com, phil.yang@arm.com
Subject: [dts] [PATCH] tests/mempool_exthandler: stop l2fwd on DUT after each test.
Date: Fri, 15 Jun 2018 17:00:47 +0800 [thread overview]
Message-ID: <1529053247-21077-1-git-send-email-phil.yang@arm.com> (raw)
Stop l2fwd to clean up DUT after each test case.
Signed-off-by: Phil Yang <phil.yang@arm.com>
---
tests/TestSuite_mempool_exthandler.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/TestSuite_mempool_exthandler.py b/tests/TestSuite_mempool_exthandler.py
index bbd8761..10fbd1d 100644
--- a/tests/TestSuite_mempool_exthandler.py
+++ b/tests/TestSuite_mempool_exthandler.py
@@ -114,6 +114,7 @@ class TestMemExthandler(TestCase):
# strip rx/tx statistic from l2fwd output
out = self.dut.get_session_output()
+ self.dut.send_expect("^C", "#", 30)
sent_list = utils.regexp(out, r"Total packets sent:(\s+)(\d+)", allString=True)
total_sent = int(sent_list[-1][1])
rcv_list = utils.regexp(out, r"Total packets received:(\s+)(\d+)", allString=True)
--
2.7.4
next reply other threads:[~2018-06-15 9:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-15 9:00 Phil Yang [this message]
2018-06-20 15:11 ` 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=1529053247-21077-1-git-send-email-phil.yang@arm.com \
--to=phil.yang@arm.com \
--cc=dts@dpdk.org \
--cc=nd@arm.com \
/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).