[V1,2/4] tests/dynamic_queue: modify script according to dpdk code change
Commit Message
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(-)
@@ -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