* [dts] [PATCH V1] tests/rxtx_offload: delete check times
@ 2022-08-04 16:43 Jiale Song
0 siblings, 0 replies; only message in thread
From: Jiale Song @ 2022-08-04 16:43 UTC (permalink / raw)
To: dts; +Cc: Jiale Song
optimize script, the number of TX packages can not reach the specified
number within the specified times.therefore, delete the check times.
Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
tests/TestSuite_rxtx_offload.py | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
diff --git a/tests/TestSuite_rxtx_offload.py b/tests/TestSuite_rxtx_offload.py
index c60bb68b..c3c9bde1 100644
--- a/tests/TestSuite_rxtx_offload.py
+++ b/tests/TestSuite_rxtx_offload.py
@@ -228,11 +228,11 @@ class TestRxTx_Offload(TestCase):
)
i = i + 1
- def verify_packets_increasing(self, rxtx="tx", count=2):
+ def verify_packets_increasing(self, rxtx="tx"):
# Verify RXTX-packets increasing on each ports, check count < 25
out1 = self.dut.send_expect("show port stats all", "testpmd> ")
- i = 0
- while i < count:
+ i = 1
+ while i:
if rxtx == "tx":
pks_l1 = re.findall(r"TX-packets: (\w+)", out1)
time.sleep(15)
@@ -241,8 +241,6 @@ class TestRxTx_Offload(TestCase):
self.logger.info(
"Times="
+ str(i)
- + ", count="
- + str(count)
+ ", pks2_cur="
+ str(pks_l2)
+ ", pks1_before="
@@ -252,12 +250,10 @@ 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:
- count += 1
- i += 1
- if count > 25:
- self.verify(False, "Check count timeout")
- break
+ if int(pks_l2[index]) < 100000000:
+ i += 1
+ else:
+ break
def get_queue_number(self, packet):
"""
--
2.25.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-04 8:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-04 16:43 [dts] [PATCH V1] tests/rxtx_offload: delete check times Jiale Song
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).