[dts] [PATCH V1] tests/shutdown_api: fix stop_restart case failed

lu,peipei peipeix.lu at intel.com
Tue Sep 19 08:38:04 CEST 2017


some OSes check ports status failed,Here need pause for 5 seconds

Signed-off-by: lu,peipei <peipeix.lu at intel.com>
---
 tests/TestSuite_shutdown_api.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py
index c497652..f81c3d5 100644
--- a/tests/TestSuite_shutdown_api.py
+++ b/tests/TestSuite_shutdown_api.py
@@ -195,6 +195,7 @@ class TestShutdownApi(TestCase):
         self.dut.send_expect("stop", "testpmd> ")
         self.check_forwarding(received=False)
         self.dut.send_expect("port stop all", "testpmd> ", 100)
+        time.sleep(5)
         self.check_ports(status=False)
         self.dut.send_expect("port start all", "testpmd> ", 100)
         time.sleep(5)
-- 
1.9.3



More information about the dts mailing list