[dts][PATCH V1] tests/port_control: Optimize script check the port status after restarting the port
Weiyuan Li
weiyuanx.li at intel.com
Mon Oct 17 07:16:51 CEST 2022
The port status should be checked when the port is stopped and
restarted, not after the pmd is started.
Signed-off-by: Weiyuan Li <weiyuanx.li at intel.com>
---
tests/TestSuite_port_control.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestSuite_port_control.py b/tests/TestSuite_port_control.py
index bdb1b0ad..71b2ed87 100644
--- a/tests/TestSuite_port_control.py
+++ b/tests/TestSuite_port_control.py
@@ -124,9 +124,9 @@ class TestPortControl(TestCase):
def start_pmd_port(self, terminal):
terminal.execute_cmd("port start all")
+ terminal.wait_link_status_up("all")
terminal.execute_cmd("start")
time.sleep(5)
- terminal.wait_link_status_up("all", timeout=5)
ret = terminal.get_port_link_status(self.port_id_0)
self.verify(ret == "up", "port not up!")
--
2.27.0
More information about the dts
mailing list