From patchwork Wed Mar 3 08:29:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chen, BoX C" X-Patchwork-Id: 88415 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 6AED3A055D; Wed, 3 Mar 2021 09:30:34 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5F1D040683; Wed, 3 Mar 2021 09:30:34 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 4966A4067B for ; Wed, 3 Mar 2021 09:30:33 +0100 (CET) IronPort-SDR: 8tnyMWCxzdhI6iHDq+ven4ELk2vqU3hiGBnh1aFcgQAdw9oLWGzPaYKeTgQEL08pr5dQgca4F8 iYnGR8FLy+6g== X-IronPort-AV: E=McAfee;i="6000,8403,9911"; a="184721274" X-IronPort-AV: E=Sophos;i="5.81,219,1610438400"; d="scan'208";a="184721274" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2021 00:30:27 -0800 IronPort-SDR: cuOzbMEoXjdwhnEvMoPLIaO0dsgYTlTYGgGORtcjA3lB5PtSLfjfztURs9ITRRThzJ0xXbJ3wJ 52J1SJglKlJQ== X-IronPort-AV: E=Sophos;i="5.81,219,1610438400"; d="scan'208";a="600060760" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2021 00:30:26 -0800 From: Chen Bo To: dts@dpdk.org Cc: Chen Bo Date: Wed, 3 Mar 2021 16:29:41 +0800 Message-Id: <20210303082941.223073-1-box.c.chen@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [dts] [PATCH V1] tests/cvl_fdir: modify the hard code 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 Sender: "dts" Modify the hard code, call the framework interface to launch port Signed-off-by: Chen Bo --- tests/TestSuite_cvl_fdir.py | 4 ++-- tests/TestSuite_cvl_switch_filter.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_cvl_fdir.py b/tests/TestSuite_cvl_fdir.py index e118357..549256b 100644 --- a/tests/TestSuite_cvl_fdir.py +++ b/tests/TestSuite_cvl_fdir.py @@ -2264,8 +2264,8 @@ class TestCVLFdir(TestCase): self.pkt = Packet() self.pmd_output = PmdOutput(self.dut) - pf_pci = self.dut.ports_info[0]['pci'] - out = self.pmd_output.start_testpmd('default', eal_param='-a %s --log-level=ice,7'%pf_pci) + pf_pci = [self.dut.ports_info[0]['pci']] + out = self.pmd_output.start_testpmd('default', ports=pf_pci,eal_param='--log-level=ice,7') self.dut.send_expect("quit", "# ") self.max_rule_num = self.pmd_output.get_max_rule_number(self, out) self.launch_testpmd_with_mark() diff --git a/tests/TestSuite_cvl_switch_filter.py b/tests/TestSuite_cvl_switch_filter.py index 1005f3a..cc0283b 100644 --- a/tests/TestSuite_cvl_switch_filter.py +++ b/tests/TestSuite_cvl_switch_filter.py @@ -4548,8 +4548,8 @@ class CVLSwitchFilterTest(TestCase): """ generate file with fdir rules to make fdir table full, then test switch filter """ - pf_pci = self.dut.ports_info[0]['pci'] - out = self.pmd.start_testpmd('default', eal_param='-a %s --log-level=ice,7'%pf_pci) + pf_pci = [self.dut.ports_info[0]['pci']] + out = self.pmd.start_testpmd('default', ports=pf_pci, eal_param='--log-level=ice,7') self.dut.send_expect("quit", "# ") self.fdir_rule_number = self.pmd.get_max_rule_number(self,out) src_file = 'dep/testpmd_cmds_rte_flow_fdir_rules'