[dts] [PATCH] tests/mempool_exthandler: stop l2fwd on DUT after each test.
Phil Yang
phil.yang at arm.com
Fri Jun 15 11:00:47 CEST 2018
Stop l2fwd to clean up DUT after each test case.
Signed-off-by: Phil Yang <phil.yang at 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
More information about the dts
mailing list