[dts] [PATCH 08/12] fix timeout when setup dpdk app

xu,huilong huilongx.xu at intel.com
Thu May 11 09:37:43 CEST 2017


Signed-off-by: xu,huilong <huilongx.xu at intel.com>
---
 tests/TestSuite_ipfrag.py          | 2 +-
 tests/TestSuite_ipv4_reassembly.py | 2 +-
 tests/TestSuite_kni.py             | 2 +-
 tests/TestSuite_quota_watermark.py | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/TestSuite_ipfrag.py b/tests/TestSuite_ipfrag.py
index d2a1dbb..f23dbe1 100644
--- a/tests/TestSuite_ipfrag.py
+++ b/tests/TestSuite_ipfrag.py
@@ -133,7 +133,7 @@ l3fwd_ipv4_route_array[] = {\\\n"
 
         # run ipv4_frag
         self.dut.send_expect("examples/ip_fragmentation/build/ip_fragmentation -c %s -n %d -- -p %s -q %s" % (
-            coremask, self.dut.get_memory_channels(), portmask, numPortThread), "IP_FRAG:", 120)
+            coremask, self.dut.get_memory_channels(), portmask, numPortThread), "Link Up", 120)
 
         time.sleep(2)
         self.txItf = self.tester.get_interface(self.tester.get_local_port(P0))
diff --git a/tests/TestSuite_ipv4_reassembly.py b/tests/TestSuite_ipv4_reassembly.py
index 8f28823..c730fd6 100644
--- a/tests/TestSuite_ipv4_reassembly.py
+++ b/tests/TestSuite_ipv4_reassembly.py
@@ -128,7 +128,7 @@ class TestIpReassembly(TestCase):
         command = ('./examples/ip_reassembly/build/ip_reassembly -c {core_mask} ' +
                    '-n {memory_channels} --  -p {dut_port_mask} ' +
                    '--maxflows={maxflows} --flowttl={flowttl} {extra_args}')
-        self.dut.send_expect(command.format(**self.test_config.__dict__), 'IP_RSMBL: ')
+        self.dut.send_expect(command.format(**self.test_config.__dict__), 'Link Up')
 
     def tcp_ipv4_fragments(self, src_ip, identifier):
         """
diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py
index 0825903..acd6230 100644
--- a/tests/TestSuite_kni.py
+++ b/tests/TestSuite_kni.py
@@ -307,7 +307,7 @@ class TestKni(TestCase):
         out_kni = self.dut.send_expect(
             './examples/kni/build/app/kni -c %s -n %d -- -P -p %s %s &' %
             (core_mask, self.dut.get_memory_channels(), port_mask, config_param),
-            "APP: Lcore [0-9]+ is reading from port [0-9]+", 20)
+            "Link Up", 20)
 
         time.sleep(5)
         if kthread_mode == 'single':
diff --git a/tests/TestSuite_quota_watermark.py b/tests/TestSuite_quota_watermark.py
index 94957e2..72556ab 100644
--- a/tests/TestSuite_quota_watermark.py
+++ b/tests/TestSuite_quota_watermark.py
@@ -146,7 +146,7 @@ class TestQuotaWatermark(TestCase, IxiaPacketGenerator):
         # file
         time.sleep(15)
         result = self.dut.send_expect('cat output.log', '# ')
-        self.verify('USER1: receive_stage() started' in result,
+        self.verify('probe driver:' in result,
                     'qw app failed to execute')
         self.execute_qwctl_app(memory_channels)
 
-- 
1.9.3



More information about the dts mailing list