[dts] [PATCH v2 15/28] tests: l2fwd - fixes to run on two cards (same NIC) and expecting "L2FWD: entering main loop" instead of "memory mapped"

Angela Czubak aczubak at caviumnetworks.com
Mon Apr 10 19:09:09 CEST 2017


Previously integrity test assumed that there should be "memory mapped"
in the output of l2fwd after start up, even though it does not appear.
Test can also be run when 2 same NICs are used now.

Signed-off-by: Angela Czubak <aczubak at caviumnetworks.com>
---
 tests/TestSuite_l2fwd.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_l2fwd.py b/tests/TestSuite_l2fwd.py
index 23815cd..659d5f7 100644
--- a/tests/TestSuite_l2fwd.py
+++ b/tests/TestSuite_l2fwd.py
@@ -60,7 +60,7 @@ class TestL2fwd(TestCase):
         self.headers_size = HEADER_SIZE['eth'] + HEADER_SIZE['ip'] + \
             HEADER_SIZE['udp']
 
-        self.dut_ports = self.dut.get_ports_performance()
+        self.dut_ports = self.dut.get_ports_performance(force_different_nic=False)
 
         self.verify(len(self.dut_ports) >= self.number_of_ports,
                     "Not enough ports for " + self.nic)
@@ -134,7 +134,7 @@ class TestL2fwd(TestCase):
                 (self.dut.get_memory_channels(), core_mask,
                  str(queues['queues']), port_mask)
 
-            self.dut.send_expect(command_line, "memory mapped", 60)
+            self.dut.send_expect(command_line, "L2FWD: entering main loop", 60)
 
             tgen_input = []
             tx_port = self.tester.get_local_port(self.dut_ports[0])
-- 
2.7.4



More information about the dts mailing list