test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V2] tests/iavf_fdir: optimization script
@ 2021-11-08  5:10 Jiale Song
  2021-11-08 15:31 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Jiale Song @ 2021-11-08  5:10 UTC (permalink / raw)
  To: dts; +Cc: Jiale Song

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 | 4 +---
 1 file changed, 1 insertion(+), 3 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..6abb75c5
--- 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()
@@ -8344,7 +8345,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()
 
@@ -8496,7 +8496,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()
 
@@ -9810,7 +9809,6 @@ class TestIAVFFdir(TestCase):
         
     def tear_down(self):
         # destroy all flow rule on port 0
-        self.dut.kill_all()
         self.destroy_env()
         if getattr(self, 'session_secondary', None):
             self.dut.close_session(self.session_secondary)
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH V2] tests/iavf_fdir: optimization script
  2021-11-08  5:10 [dts] [PATCH V2] tests/iavf_fdir: optimization script Jiale Song
@ 2021-11-08 15:31 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2021-11-08 15:31 UTC (permalink / raw)
  To: Jiale, SongX, dts; +Cc: Jiale, SongX



> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Jiale Song
> Sent: 2021年11月8日 13:10
> To: dts@dpdk.org
> Cc: Jiale, SongX <songx.jiale@intel.com>
> Subject: [dts] [PATCH V2] 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>
> ---
>  tests/TestSuite_iavf_fdir.py | 4 +---
>  1 file changed, 1 insertion(+), 3 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..6abb75c5
> --- 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()
> @@ -8344,7 +8345,6 @@ class TestIAVFFdir(TestCase):
>          create same rules on pf and vf, no conflict
>          """
>          self.dut.kill_all()
> -        self.setup_2pf_4vf_env()
Why still call kill_all here ?
>          self.session_secondary = self.dut.new_session()
>          self.session_third = self.dut.new_session()
> 
> @@ -8496,7 +8496,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()
> 
> @@ -9810,7 +9809,6 @@ class TestIAVFFdir(TestCase):
> 
>      def tear_down(self):
>          # destroy all flow rule on port 0
> -        self.dut.kill_all()
>          self.destroy_env()
>          if getattr(self, 'session_secondary', None):
>              self.dut.close_session(self.session_secondary)
> --
> 2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-08 15:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-08  5:10 [dts] [PATCH V2] tests/iavf_fdir: optimization script Jiale Song
2021-11-08 15:31 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).