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

Yu Jiang yux.jiang at intel.com
Tue Jun 6 10:10:51 CEST 2023


test_multiprocess_auto_process_type_detected & test_multiprocess_negative_2_primary_process support igc,ixgbe,i40e nic

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

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



More information about the dts mailing list