[dts][PATCH V1 2/4] tests/dynamic_queue: modify script according to dpdk code change
Lingli Chen
linglix.chen at intel.com
Thu Jun 23 08:53:34 CEST 2022
According to dpdk commit 3c4426db54fc(app/testpmd: do not poll stopped queues)
Tx stopped queue not display
Signed-off-by: Lingli Chen <linglix.chen at intel.com>
---
tests/TestSuite_dynamic_queue.py | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
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
--
2.17.1
More information about the dts
mailing list