[dts] [PATCH V1 1/3] tests/ice_iavf_fdir: optimize scripts
Hongbo Li
hongbox.li at intel.com
Tue Nov 15 08:42:12 CET 2022
when the dpdk testpmd exits abnormally, the port will not be initialized, and sometimes
the test of other cases will be affected. therefore, after the test, should use quit to
close the dpdk testpmd normally to avoid the impact between cases.
Signed-off-by: Hongbo Li <hongbox.li at intel.com>
---
tests/TestSuite_ice_iavf_fdir.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_ice_iavf_fdir.py b/tests/TestSuite_ice_iavf_fdir.py
index d6ca832a..b7954784 100644
--- a/tests/TestSuite_ice_iavf_fdir.py
+++ b/tests/TestSuite_ice_iavf_fdir.py
@@ -11932,12 +11932,12 @@ class TestICEIAVFFdir(TestCase):
"test_mac_ipv6_multicast_protocol",
]:
self.pmd_output.execute_cmd("mcast_addr remove 0 11:22:33:44:55:66")
- self.destroy_env()
- self.dut.kill_all()
if getattr(self, "session_secondary", None):
self.dut.close_session(self.session_secondary)
if getattr(self, "session_third", None):
self.dut.close_session(self.session_third)
+ self.destroy_env()
+ self.dut.kill_all()
if self.running_case in [
"test_pfcp_vlan_strip_off_sw_checksum",
--
2.25.1
More information about the dts
mailing list