[V1,2/2] tests/rxtx_offload: optimize test steps to adapt test plan
Checks
Commit Message
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(-)
Comments
> -----Original Message-----
> From: Weiyuan Li <weiyuanx.li@intel.com>
> Sent: Thursday, February 2, 2023 10:59 AM
> To: dts@dpdk.org
> Cc: Li, WeiyuanX <weiyuanx.li@intel.com>
> Subject: [dts][PATCH V1 2/2] tests/rxtx_offload: optimize test steps to adapt
> test plan
>
> 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>
> ---
Acked-by: Zhimin Huang <zhiminx.huang@intel.com >
On Thu, 2 Feb 2023 10:59:27 +0800, Weiyuan Li <weiyuanx.li@intel.com> wrote:
> 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>
Series applied, thanks
@@ -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: