test suite reviews and discussions
 help / color / mirror / Atom feed
From: Lingli Chen <linglix.chen@intel.com>
To: dts@dpdk.org
Cc: zhiminx.huang@intel.com, Lingli Chen <linglix.chen@intel.com>
Subject: [dts][PATCH V1 2/4] tests/dynamic_queue: modify script according to dpdk code change
Date: Thu, 23 Jun 2022 02:53:34 -0400	[thread overview]
Message-ID: <20220623065336.21482-3-linglix.chen@intel.com> (raw)
In-Reply-To: <20220623065336.21482-1-linglix.chen@intel.com>

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(-)

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


  parent reply	other threads:[~2022-06-23  7:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-23  6:53 [dts][PATCH V1 0/4] " Lingli Chen
2022-06-23  6:53 ` [dts][PATCH V1 1/4] test_plans/dynamic_queue: " Lingli Chen
2022-06-23  6:53 ` Lingli Chen [this message]
2022-06-23  6:53 ` [dts][PATCH V1 3/4] test_plans/queue_start_stop: " Lingli Chen
2022-06-23  6:53 ` [dts][PATCH V1 4/4] tests/queue_start_stop: " Lingli Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220623065336.21482-3-linglix.chen@intel.com \
    --to=linglix.chen@intel.com \
    --cc=dts@dpdk.org \
    --cc=zhiminx.huang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).