[V1,2/4] tests/dynamic_queue: modify script according to dpdk code change

Message ID 20220623065336.21482-3-linglix.chen@intel.com (mailing list archive)
State Superseded
Headers
Series modify script according to dpdk code change |

Commit Message

Lingli Chen June 23, 2022, 6:53 a.m. UTC
  According to dpdk commit 3c4426db54fc(app/testpmd: do not poll stopped queues)
Tx stopped queue not display

Signed-off-by: Lingli Chen <linglix.chen@intel.com>
---
 tests/TestSuite_dynamic_queue.py | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
  

Patch

diff --git a/tests/TestSuite_dynamic_queue.py b/tests/TestSuite_dynamic_queue.py
index ebbe869c..21fcba57 100644
--- a/tests/TestSuite_dynamic_queue.py
+++ b/tests/TestSuite_dynamic_queue.py
@@ -163,12 +163,16 @@  class TestDynamicQueue(TestCase):
             out = self.dut_testpmd.execute_cmd("stop")
             tx_num = qringsize - 1
 
-            if self.nic in ["cavium_a063", "cavium_a064"]:
-                self.verify("TX-packets: 0" in out, "Fail to stop txq at runtime")
+            # Check Tx stopped queue not display
+            if queue < 10:
+                self.verify(
+                    "TX Port= 0/Queue= %d" % queue not in out,
+                    "Fail to stop txq at runtime",
+                )
             else:
-                # Check Tx stopped queue only transmits qringsize-1 packets
                 self.verify(
-                    "TX-packets: %d" % tx_num in out, "Fail to stop txq at runtime"
+                    "TX Port= 0/Queue=%d" % queue not in out,
+                    "Fail to stop txq at runtime",
                 )
             if chgflag == 1:
                 chg_qringsize = qringsize % 1024 + 256