diff options
author | Lijuan Tu <lijuanx.a.tu@intel.com> | 2015-11-18 18:40:29 +0800 |
---|---|---|
committer | Marvin Liu <yong.liu@intel.com> | 2015-11-19 10:40:37 +0800 |
commit | 1a7253ffdd27e312eea41aae54496b858bed32e5 (patch) | |
tree | b9fb3251a6a044d3f79d2f550895e34c30c5412e /tests/TestSuite_nvgre.py | |
parent | a8d7e0135da8a3817541329a4168456b8e040ec3 (diff) |
tests nvgre, vxlan, multiprocess: fix output message mixed
Output message from main thread and datapath thread message may mixed.
Separated operations between those threads and get message just from
session output.
Signed-off-by: Lijuan Tu <lijuanx.a.tu@intel.com>
Diffstat (limited to 'tests/TestSuite_nvgre.py')
-rw-r--r-- | tests/TestSuite_nvgre.py | 6 |
1 files 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)") |