From: Yu Jiang <yux.jiang@intel.com>
To: lijuan.tu@intel.com, dts@dpdk.org
Cc: Yu Jiang <yux.jiang@intel.com>
Subject: [dts][PATCH V1] tests/multiprocess: multiprocess_auto_process_type_detected & multiprocess_negative_2_primary_process support igc, ixgbe, i40e nic
Date: Tue, 6 Jun 2023 16:10:51 +0800 [thread overview]
Message-ID: <20230606081051.3083094-1-yux.jiang@intel.com> (raw)
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
next reply other threads:[~2023-06-06 8:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-06 8:10 Yu Jiang [this message]
2023-06-07 8:00 ` lijuan.tu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230606081051.3083094-1-yux.jiang@intel.com \
--to=yux.jiang@intel.com \
--cc=dts@dpdk.org \
--cc=lijuan.tu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).