test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1] tests/*: add wait_link_status_up after start testpmd
@ 2022-12-21  6:54 Lingli Chen
  0 siblings, 0 replies; only message in thread
From: Lingli Chen @ 2022-12-21  6:54 UTC (permalink / raw)
  To: dts; +Cc: zhiminx.huang, Lingli Chen

optimize script: external_mempool_handler, mtu_update add wait_link_status_up after start testpmd
to enhance script robustness.

Signed-off-by: Lingli Chen <linglix.chen@intel.com>
---
 tests/TestSuite_external_mempool_handler.py | 2 +-
 tests/TestSuite_mtu_update.py               | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_external_mempool_handler.py b/tests/TestSuite_external_mempool_handler.py
index aa22a35a..92790b2e 100644
--- a/tests/TestSuite_external_mempool_handler.py
+++ b/tests/TestSuite_external_mempool_handler.py
@@ -53,7 +53,7 @@ class TestExternalMempool(TestCase):
         self.pmdout.start_testpmd("1S/2C/1T", "--portmask=0x3")
         self.pmdout.execute_cmd("set fwd mac")
         self.pmdout.execute_cmd("start")
-
+        self.pmdout.wait_link_status_up('all')
         tgen_input = []
         tx_port = self.tester.get_local_port(self.dut_ports[0])
         rx_port = self.tester.get_local_port(self.dut_ports[1])
diff --git a/tests/TestSuite_mtu_update.py b/tests/TestSuite_mtu_update.py
index 4fc3c335..8fe53e22 100644
--- a/tests/TestSuite_mtu_update.py
+++ b/tests/TestSuite_mtu_update.py
@@ -219,7 +219,7 @@ class TestMtuUpdate(TestCase):
         self.exec("port start all")
         self.exec("set fwd mac")
         self.exec("start")
-        self.pmdout.wait_link_status_up(self.dut_ports[0])
+        self.pmdout.wait_link_status_up('all')
         """
         On 1G NICs, when the jubmo frame MTU set > 1500, the software adjust it to MTU+4.
         """
-- 
2.17.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-21  7:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-21  6:54 [dts][PATCH V1] tests/*: add wait_link_status_up after start testpmd Lingli Chen

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