[V1] tests/*: add wait_link_status_up after start testpmd

Message ID 20221221065446.22316-1-linglix.chen@intel.com (mailing list archive)
State Superseded
Headers
Series [V1] tests/*: add wait_link_status_up after start testpmd |

Checks

Context Check Description
ci/Intel-dts-format-test fail Testing issues
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-suite-test fail Testing issues

Commit Message

Lingli Chen Dec. 21, 2022, 6:54 a.m. UTC
  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(-)
  

Patch

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