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 990A8A04C9; Mon, 14 Sep 2020 09:08:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8F2AA1BFC4; Mon, 14 Sep 2020 09:08:44 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 5A205160 for ; Mon, 14 Sep 2020 09:08:42 +0200 (CEST) IronPort-SDR: 1yH+IaibB0nKtMuwSYWDn3SFQ/A9Gs+wAlaMa42mdsNWyo46yA8ImoSKPmtxND/9jerDp7p8tL RUauZOwESb0Q== X-IronPort-AV: E=McAfee;i="6000,8403,9743"; a="159071519" X-IronPort-AV: E=Sophos;i="5.76,425,1592895600"; d="scan'208";a="159071519" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2020 00:08:42 -0700 IronPort-SDR: 8k4oIwoLavle+F6zp2HmEJjoHu5z0BCOsKtYbgwW4RGoixGW63oNh3H/YITVDWw3EXL9B7y9Af g3cB/WKeooMw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,425,1592895600"; d="scan'208";a="408776013" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga001.fm.intel.com with ESMTP; 14 Sep 2020 00:08:41 -0700 From: lingwei To: dts@dpdk.org Cc: lingwei Date: Mon, 14 Sep 2020 14:58:21 +0000 Message-Id: <20200914145822.18971-5-weix.ling@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200914145822.18971-1-weix.ling@intel.com> References: <20200914145822.18971-1-weix.ling@intel.com> Subject: [dts] [PATCH V4 4/5] tests/TestSuite_vmdq_dcb:use API to set dpdk config when use meson 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" use API to set dpdk config when use meson Signed-off-by: lingwei --- tests/TestSuite_vmdq_dcb.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/tests/TestSuite_vmdq_dcb.py b/tests/TestSuite_vmdq_dcb.py index d202441..5f0da0f 100644 --- a/tests/TestSuite_vmdq_dcb.py +++ b/tests/TestSuite_vmdq_dcb.py @@ -93,15 +93,10 @@ class TestVmdqDcb(TestCase): """ Rebuild dpdk """ - out = self.dut.send_expect("grep 'CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM' ./config/common_base", "#", 20) - vm_num = re.findall(r'\d+', out)[-1] - if str(nb_queue_per_vm) == vm_num: - return - else: - self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM=%s/CONFIG_RTE_LIBRTE_I40E_" - "QUEUE_NUM_PER_VM=%s/' ./config/common_base" % (vm_num, nb_queue_per_vm), "#", 20) - self.dut.set_build_options({'RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM': nb_queue_per_vm}) - self.dut.build_install_dpdk(self.target) + self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM=.*$/CONFIG_RTE_LIBRTE_I40E_" + "QUEUE_NUM_PER_VM=%s/' ./config/common_base" % nb_queue_per_vm, "#", 20) + self.dut.set_build_options({'RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM': nb_queue_per_vm}) + self.dut.build_install_dpdk(self.target) def start_application(self, npools, ntcs): """ -- 2.17.1