test suite reviews and discussions
 help / color / mirror / Atom feed
From: Weiyuan Li <weiyuanx.li@intel.com>
To: dts@dpdk.org
Cc: Weiyuan Li <weiyuanx.li@intel.com>
Subject: [dts][PATCH V1 2/2] tests/rxtx_offload: optimize test steps to adapt test plan
Date: Thu,  2 Feb 2023 10:59:27 +0800	[thread overview]
Message-ID: <20230202025927.22506-2-weiyuanx.li@intel.com> (raw)
In-Reply-To: <20230202025927.22506-1-weiyuanx.li@intel.com>

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@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


  reply	other threads:[~2023-02-02  2:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-02  2:59 [dts][PATCH V1 1/2] test_plans/rxtx_offload: Modify the test plan clerical error Weiyuan Li
2023-02-02  2:59 ` Weiyuan Li [this message]
2023-02-03  3:11   ` [dts][PATCH V1 2/2] tests/rxtx_offload: optimize test steps to adapt test plan Huang, ZhiminX
2023-03-07  3:52   ` lijuan.tu

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=20230202025927.22506-2-weiyuanx.li@intel.com \
    --to=weiyuanx.li@intel.com \
    --cc=dts@dpdk.org \
    /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).