[V1] tests/multiprocess: multiprocess_auto_process_type_detected & multiprocess_negative_2_primary_process support igc, ixgbe, i40e nic

Message ID 20230606081051.3083094-1-yux.jiang@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/multiprocess: multiprocess_auto_process_type_detected & multiprocess_negative_2_primary_process support igc, ixgbe, i40e nic |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-suite-test success Testing OK

Commit Message

Yu Jiang June 6, 2023, 8:10 a.m. UTC
  test_multiprocess_auto_process_type_detected & test_multiprocess_negative_2_primary_process support igc,ixgbe,i40e nic

Signed-off-by: Yu Jiang <yux.jiang@intel.com>
---
 tests/TestSuite_multiprocess.py | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
  

Comments

Tu, Lijuan June 7, 2023, 8 a.m. UTC | #1
On Tue,  6 Jun 2023 16:10:51 +0800, Yu Jiang <yux.jiang@intel.com> wrote:
> test_multiprocess_auto_process_type_detected & test_multiprocess_negative_2_primary_process support igc,ixgbe,i40e nic
> 
> Signed-off-by: Yu Jiang <yux.jiang@intel.com>


Applied, thanks
  

Patch

diff --git a/tests/TestSuite_multiprocess.py b/tests/TestSuite_multiprocess.py
index 90d9f0cf..33ccaaae 100644
--- a/tests/TestSuite_multiprocess.py
+++ b/tests/TestSuite_multiprocess.py
@@ -1040,10 +1040,12 @@  class TestMultiprocess(TestCase):
         )
 
     # test testpmd multi-process
-    @check_supported_nic(support_nic)
     def test_multiprocess_auto_process_type_detected(self):
         # start 2 process
-        self.launch_multi_testpmd("auto", 8, 2)
+        if self.kdriver in ["igc", "ixgbe"]:
+            self.launch_multi_testpmd("auto", 4, 2)
+        else:
+            self.launch_multi_testpmd("auto", 8, 2)
         # get output of each process and check the detected process type is correctly
         process_type = ["PRIMARY", "SECONDARY"]
         for i in range(2):
@@ -1056,11 +1058,13 @@  class TestMultiprocess(TestCase):
                 "pass: Auto-detected {} process type correctly".format(process_type[i])
             )
 
-    @check_supported_nic(support_nic)
     def test_multiprocess_negative_2_primary_process(self):
         # start 2 primary process
         try:
-            self.launch_multi_testpmd(["primary", "primary"], 8, 2, timeout=10)
+            if self.kdriver in ["igc", "ixgbe"]:
+                self.launch_multi_testpmd(["primary", "primary"], 4, 2, timeout=10)
+            else:
+                self.launch_multi_testpmd(["primary", "primary"], 8, 2, timeout=10)
         except Exception as e:
             # check second process start failed
             self.verify(