From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EDF58A0522; Fri, 3 Jul 2020 04:56:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 70C8C1D930; Fri, 3 Jul 2020 04:56:13 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id F09321D913 for ; Fri, 3 Jul 2020 04:56:11 +0200 (CEST) IronPort-SDR: x0gniKB7b8eNlAsD7PWEZFWLV2Sedz6oatv/9nnO4EnvlLqCoBj/PKSP3CoxmSKDZUqO825JDZ 5go4dnyeOqmQ== X-IronPort-AV: E=McAfee;i="6000,8403,9670"; a="231942336" X-IronPort-AV: E=Sophos;i="5.75,306,1589266800"; d="scan'208";a="231942336" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2020 19:56:11 -0700 IronPort-SDR: gbUluaeU0z0cqX52+xhWNzw7dEMIesvU5VRMpQsn8sCr0QjDBOP3dhcXKg4HWcZdvtuZqbykbU cZVp2dsjmkWg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,306,1589266800"; d="scan'208";a="387509166" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by fmsmga001.fm.intel.com with ESMTP; 02 Jul 2020 19:56:10 -0700 From: yufengmx To: dts@dpdk.org, jianweix.mei@intel.com Cc: yufengmx Date: Fri, 3 Jul 2020 10:55:58 +0800 Message-Id: <20200703025558.24388-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200703025558.24388-1-yufengx.mo@intel.com> References: <20200703025558.24388-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 1/1] tests/dcf_lifecycle: support 4 ports X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "dts" support 4 ports. Signed-off-by: yufengmx --- tests/TestSuite_dcf_lifecycle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_dcf_lifecycle.py b/tests/TestSuite_dcf_lifecycle.py index 90a56e6..3971941 100644 --- a/tests/TestSuite_dcf_lifecycle.py +++ b/tests/TestSuite_dcf_lifecycle.py @@ -249,7 +249,7 @@ class TestDcfLifeCycle(TestCase): pf1_vf1 = self.vf_ports_info[0].get('vfs_pci')[1] pf1_vf2 = self.vf_ports_info[0].get('vfs_pci')[2] pf2_vf0 = self.vf_ports_info[1].get('vfs_pci')[0] \ - if len(self.vf_ports_info) == 2 else '' + if len(self.vf_ports_info) >= 2 else '' whitelist = { 'pf1_vf0_dcf': f"-w {pf1_vf0},cap=dcf", 'pf1_vf1_dcf': f"-w {pf1_vf1},cap=dcf", -- 2.21.0