[dts] [PATCH V1 1/2] tests/ice_dcf_switch_filter_gtpu: optimization script

Song Jiale songx.jiale at intel.com
Wed Sep 14 12:33:25 CEST 2022


1.the "testpmd_status" is the wrong status when launch app timeout,
it will affect other cases test. therefore, changing the status first 
and then starting the app can solve this issue.
2.add timeout.

Signed-off-by: Song Jiale <songx.jiale at intel.com>
---
 tests/TestSuite_ice_dcf_switch_filter_gtpu.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_ice_dcf_switch_filter_gtpu.py b/tests/TestSuite_ice_dcf_switch_filter_gtpu.py
index 0f48d78d..9e7a0e4d 100644
--- a/tests/TestSuite_ice_dcf_switch_filter_gtpu.py
+++ b/tests/TestSuite_ice_dcf_switch_filter_gtpu.py
@@ -3592,8 +3592,7 @@ class ICEDCFSwitchFilterGTPUTest(TestCase):
         """
         dcf switch need reload driver to ensure create rule sucessful
         """
-        self.dut.send_expect("rmmod ice", "# ", 15)
-        self.dut.send_expect("modprobe ice", "# ", 15)
+        self.dut.send_expect("rmmod ice && modprobe ice", "# ", 60)
 
     def create_testpmd_command(self):
         """
@@ -3617,8 +3616,8 @@ class ICEDCFSwitchFilterGTPUTest(TestCase):
         launch testpmd with the command
         """
         command = self.create_testpmd_command()
-        self.dut.send_expect(command, "testpmd> ", 15)
         self.testpmd_status = "running"
+        self.dut.send_expect(command, "testpmd> ", 30)
         self.dut.send_expect("set portlist 1", "testpmd> ", 15)
         self.dut.send_expect("set fwd rxonly", "testpmd> ", 15)
         self.dut.send_expect("set verbose 1", "testpmd> ", 15)
-- 
2.17.1



More information about the dts mailing list