diff mbox series

[V3] tests/iavf_fdir: optimization script

Message ID 1636425111-202443-1-git-send-email-songx.jiale@intel.com (mailing list archive)
State Accepted
Headers show
Series [V3] tests/iavf_fdir: optimization script | expand

Checks

Context Check Description
ci/Intel-dts-suite-test warning SKIPPED

Commit Message

Jiale Song Nov. 9, 2021, 2:31 a.m. UTC
initialize pf. because pf is not initialized after case test, other case tests fail

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

Comments

Tu, Lijuan Nov. 9, 2021, 9 a.m. UTC | #1
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Jiale Song
> Sent: 2021年11月9日 10:32
> To: dts@dpdk.org
> Cc: Jiale, SongX <songx.jiale@intel.com>
> Subject: [dts] [PATCH V3] tests/iavf_fdir: optimization script
> 
> initialize pf. because pf is not initialized after case test, other case tests fail
> 
> Signed-off-by: Jiale Song <songx.jiale@intel.com>

Applied
diff mbox series

Patch

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()