From patchwork Tue Jun 6 08:10:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yu Jiang X-Patchwork-Id: 128164 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CD75642C3E; Tue, 6 Jun 2023 10:11:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9AABE40A84; Tue, 6 Jun 2023 10:11:57 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 35DCC40697 for ; Tue, 6 Jun 2023 10:11:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686039115; x=1717575115; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=G7Bk1WzL7ekgTrfu8/HWt7epoGP6RGSHzQArHsM6jWs=; b=GCr44wopMHFbaQnWfN37FLAsjbOmA++xgppEJaobpN2rY80iIBvjuG2i dds9QegOKHMzYfm72owxHVcNin+yed7x0VZ/weqwLaflkYDvxEYf7eD30 y9JWZQZj+31DA2q8c12T0ZtudLNBZh7Of0EJy+OYOvvpFRsjKn4CPhBzf T0JBnnzQKOiqgCxbTLhtXDc6yqMbba2SwE0LuNGXoNwWCoVhoyN0EnaO5 +V/lnBfxRsfSR1S7ScIxgA8AwU1hdATWSGxhNG1JknBpimWMieL6PKbwX iM8JqJjBY4Jug6PEzCzAFgsCxVpDa+ZM3PB+vYDRYwCLxlRKhO/8+D3uP w==; X-IronPort-AV: E=McAfee;i="6600,9927,10732"; a="336226518" X-IronPort-AV: E=Sophos;i="6.00,219,1681196400"; d="scan'208";a="336226518" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2023 01:10:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10732"; a="853315325" X-IronPort-AV: E=Sophos;i="6.00,219,1681196400"; d="scan'208";a="853315325" Received: from unknown (HELO localhost.localdomain) ([10.239.252.196]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2023 01:10:54 -0700 From: Yu Jiang To: lijuan.tu@intel.com, dts@dpdk.org Cc: Yu Jiang 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 Message-Id: <20230606081051.3083094-1-yux.jiang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org test_multiprocess_auto_process_type_detected & test_multiprocess_negative_2_primary_process support igc,ixgbe,i40e nic Signed-off-by: Yu Jiang --- 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(