[dts][PATCH V1] tests/*: add wait_link_status_up after start testpmd
Lingli Chen
linglix.chen at intel.com
Wed Dec 21 07:54:46 CET 2022
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 at 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
More information about the dts
mailing list