test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1] tests/multiprocess: multiprocess_auto_process_type_detected & multiprocess_negative_2_primary_process support igc, ixgbe, i40e nic
@ 2023-06-06  8:10 Yu Jiang
  2023-06-07  8:00 ` lijuan.tu
  0 siblings, 1 reply; 2+ messages in thread
From: Yu Jiang @ 2023-06-06  8:10 UTC (permalink / raw)
  To: lijuan.tu, dts; +Cc: Yu Jiang

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

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


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

* [dts][PATCH V1] tests/multiprocess: multiprocess_auto_process_type_detected & multiprocess_negative_2_primary_process support igc, ixgbe, i40e nic
  2023-06-06  8:10 [dts][PATCH V1] tests/multiprocess: multiprocess_auto_process_type_detected & multiprocess_negative_2_primary_process support igc, ixgbe, i40e nic Yu Jiang
@ 2023-06-07  8:00 ` lijuan.tu
  0 siblings, 0 replies; 2+ messages in thread
From: lijuan.tu @ 2023-06-07  8:00 UTC (permalink / raw)
  To: lijuan.tu, dts, Yu Jiang; +Cc: Yu Jiang

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

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

end of thread, other threads:[~2023-06-07  8:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-06  8:10 [dts][PATCH V1] tests/multiprocess: multiprocess_auto_process_type_detected & multiprocess_negative_2_primary_process support igc, ixgbe, i40e nic Yu Jiang
2023-06-07  8:00 ` lijuan.tu

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