[V1,2/2] tests/ice_dcf_switch_filter_pppoe: optimization script
Checks
Context |
Check |
Description |
ci/Intel-dts-format-test |
success
|
Testing OK
|
ci/Intel-dts-pylama-test |
success
|
Testing OK
|
Commit Message
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@intel.com>
---
tests/TestSuite_ice_dcf_switch_filter_pppoe.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
@@ -867,8 +867,7 @@ class ICEDCFSwitchFilterPPPOETest(TestCase):
time.sleep(5)
def reload_ice(self):
- self.dut.send_expect("rmmod ice", "# ", 15)
- self.dut.send_expect("modprobe ice", "# ", 15)
+ self.dut.send_expect("rmmod ice && modprobe ice", "# ", 60)
def set_up(self):
"""
@@ -896,8 +895,8 @@ class ICEDCFSwitchFilterPPPOETest(TestCase):
launch testpmd with the command
"""
command = self.create_testpmd_command()
- out = 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)