* [dts] [PATCH] nvgre: Start packet forwarding before tester send packet to dut.
@ 2015-11-12 2:21 Lijuan Tu
0 siblings, 0 replies; only message in thread
From: Lijuan Tu @ 2015-11-12 2:21 UTC (permalink / raw)
To: dts
Signed-off-by: Lijuan Tu <lijuanx.a.tu@intel.com>
---
tests/TestSuite_nvgre.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_nvgre.py b/tests/TestSuite_nvgre.py
index 954259d..86609ab 100644
--- a/tests/TestSuite_nvgre.py
+++ b/tests/TestSuite_nvgre.py
@@ -452,9 +452,10 @@ class TestNvgre(TestCase):
config.outer_mac_dst = self.dut_rx_port_mac
config.create_pcap()
# time.sleep(10)
+ self.dut.send_expect("start", "testpmd>", 10)
config.send_pcap()
# check whether detect nvgre type
- out = self.dut.send_expect("start", "testpmd>", 10)
+ out = self.dut.get_session_output()
print out
self.verify(config.packet_type() in out, "Nvgre Packet not detected")
out = self.dut.send_expect("show port stats all", "testpmd>", 10)
@@ -497,8 +498,9 @@ class TestNvgre(TestCase):
# send nvgre packet
config.create_pcap()
+ self.dut.send_expect("start", "testpmd>", 10)
config.send_pcap()
- out = self.dut.send_expect("start", "testpmd>", 10)
+ out = self.dut.get_session_output()
print out
queue = -1
pattern = re.compile("- Receive queue=0x(\d)")
--
1.9.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-11-12 2:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-12 2:21 [dts] [PATCH] nvgre: Start packet forwarding before tester send packet to dut Lijuan Tu
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).