[dts] [PATCH V3] tests/iavf_fdir: optimization script

Jiale Song songx.jiale at intel.com
Tue Nov 9 03:31:51 CET 2021


initialize pf. because pf is not initialized after case test, other case tests fail

Signed-off-by: Jiale Song <songx.jiale at intel.com>
---
 tests/TestSuite_iavf_fdir.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
 mode change 100755 => 100644 tests/TestSuite_iavf_fdir.py

diff --git a/tests/TestSuite_iavf_fdir.py b/tests/TestSuite_iavf_fdir.py
old mode 100755
new mode 100644
index fab7cc27..143df1b6
--- a/tests/TestSuite_iavf_fdir.py
+++ b/tests/TestSuite_iavf_fdir.py
@@ -7593,6 +7593,7 @@ class TestIAVFFdir(TestCase):
         """
         Run before each test case.
         """
+        self.dut.restore_interfaces_linux()
         self.setup_2pf_4vf_env()
         time.sleep(1)
         self.launch_testpmd()
@@ -8343,8 +8344,6 @@ class TestIAVFFdir(TestCase):
         """
         create same rules on pf and vf, no conflict
         """
-        self.dut.kill_all()
-        self.setup_2pf_4vf_env()
         self.session_secondary = self.dut.new_session()
         self.session_third = self.dut.new_session()
 
@@ -8495,8 +8494,6 @@ class TestIAVFFdir(TestCase):
         """
         create same input set but different action rules on pf and vf, no conflict.
         """
-        self.dut.kill_all()
-        self.setup_2pf_4vf_env()
         self.session_secondary = self.dut.new_session()
         self.session_third = self.dut.new_session()
 
@@ -8649,7 +8646,6 @@ class TestIAVFFdir(TestCase):
         """
         create different rules on pf and vf
         """
-        self.dut.kill_all()
         self.session_secondary = self.dut.new_session()
         self.session_third = self.dut.new_session()
 
-- 
2.17.1



More information about the dts mailing list