[V1] tests/ice_iavf_fdir.py ensure that the environment can be cleaned up after an exception occurs in the case
Commit Message
1.If testcase throws an exception, the vf will not be cleaned, and cause other cases to fail.
2.Ensure that all sessions exit before deleting vf by adjusting the cleaning environment order.
Signed-off-by: Hongbo Li <hongbox.li@intel.com>
---
tests/TestSuite_ice_iavf_fdir.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -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",