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 46C1FA04C9; Mon, 14 Sep 2020 09:08:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3609C2C36; Mon, 14 Sep 2020 09:08:40 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 1FF562C36 for ; Mon, 14 Sep 2020 09:08:37 +0200 (CEST) IronPort-SDR: KEoLNWKM3OIKCrN94MnHmfLbwdcvHZNAGKgR4A3urK2w19wJiDJi0BoMqwGSUkMq2Q/LRGD6tH 3ezK4oLNfTRQ== X-IronPort-AV: E=McAfee;i="6000,8403,9743"; a="159071509" X-IronPort-AV: E=Sophos;i="5.76,425,1592895600"; d="scan'208";a="159071509" 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:37 -0700 IronPort-SDR: wg1D33wNVePUOyyO2OZYDbQXwnVgGQ/A2s1duO+vYyzAkKJtFeNQQaBcYMQXyLQKNU4bAzRiQR P9hJMnH+BNKg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,425,1592895600"; d="scan'208";a="408776001" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga001.fm.intel.com with ESMTP; 14 Sep 2020 00:08:36 -0700 From: lingwei To: dts@dpdk.org Cc: lingwei Date: Mon, 14 Sep 2020 14:58:19 +0000 Message-Id: <20200914145822.18971-3-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 2/5] tests/TestSuite_af_xdp_2: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_af_xdp_2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_af_xdp_2.py b/tests/TestSuite_af_xdp_2.py index f1d495f..4586c9d 100644 --- a/tests/TestSuite_af_xdp_2.py +++ b/tests/TestSuite_af_xdp_2.py @@ -77,6 +77,7 @@ class TestAfXdp(TestCase): def prepare_dpdk(self): self.dut.send_expect( "sed -i 's/CONFIG_RTE_LIBRTE_PMD_AF_XDP=n$/CONFIG_RTE_LIBRTE_PMD_AF_XDP=y/' config/common_base", "# ") + self.dut.set_build_options({'RTE_LIBRTE_PMD_AF_XDP': 'y'}) self.dut.build_install_dpdk(self.dut.target) def set_port_queue(self, intf): @@ -431,7 +432,7 @@ class TestAfXdp(TestCase): def tear_down_all(self): self.dut.kill_all() - self.dut.send_expect( "sed -i 's/CONFIG_RTE_LIBRTE_PMD_AF_XDP=y$/CONFIG_RTE_LIBRTE_PMD_AF_XDP=n/' config/common_base", "# ") + self.dut.set_build_options({'RTE_LIBRTE_PMD_AF_XDP': 'n'}) self.dut.build_install_dpdk(self.dut.target) -- 2.17.1