[dts][PATCH V1 2/2] tests/rxtx_offload: optimize test steps to adapt test plan

Weiyuan Li weiyuanx.li at intel.com
Thu Feb 2 03:59:27 CET 2023


It takes too much time to check 100M TX-packets, according to the test
plan only 100K Tx-packets needs to be checked to optimize the test
steps.
 
Signed-off-by: Weiyuan Li <weiyuanx.li at intel.com>
---
 tests/TestSuite_rxtx_offload.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_rxtx_offload.py b/tests/TestSuite_rxtx_offload.py
index c60bb68b..4c084abf 100644
--- a/tests/TestSuite_rxtx_offload.py
+++ b/tests/TestSuite_rxtx_offload.py
@@ -235,7 +235,7 @@ class TestRxTx_Offload(TestCase):
         while i < count:
             if rxtx == "tx":
                 pks_l1 = re.findall(r"TX-packets: (\w+)", out1)
-                time.sleep(15)
+                time.sleep(3)
                 out1 = self.dut.send_expect("show port stats all", "testpmd> ")
                 pks_l2 = re.findall(r"TX-packets: (\w+)", out1)
                 self.logger.info(
@@ -252,7 +252,7 @@ class TestRxTx_Offload(TestCase):
                     self.verify(
                         int(pks_l2[index]) > int(pks_l1[index]), "TX-packets hang"
                     )
-                if int(pks_l1[index]) < 100000000 or int(pks_l2[index]) < 100000000:
+                if int(pks_l1[index]) < 100000 or int(pks_l2[index]) < 100000:
                     count += 1
             i += 1
             if count > 25:
-- 
2.25.1



More information about the dts mailing list