From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A9104A0A02; Fri, 26 Mar 2021 08:53:07 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7620440685; Fri, 26 Mar 2021 08:53:07 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 8984D4067B for ; Fri, 26 Mar 2021 08:53:05 +0100 (CET) IronPort-SDR: nC0AHnwgTWA+6Apneu2NA44kzB3EEOJyvL3ZxiPmYY87eniLro1eCFKfVPC1YIfoK0EhkWp3Sv +hvoEFQ/1jAg== X-IronPort-AV: E=McAfee;i="6000,8403,9934"; a="190537487" X-IronPort-AV: E=Sophos;i="5.81,279,1610438400"; d="scan'208";a="190537487" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2021 00:53:04 -0700 IronPort-SDR: 5Cz3alDi8p1znXzhmQJPwlFe2o45wiAoocflSqXb9cNO0PyNRi0o8oJTaa8ZaTZyoWOwItVD0Z v0o1nhrcd9oQ== X-IronPort-AV: E=Sophos;i="5.81,279,1610438400"; d="scan'208";a="514979481" Received: from unknown (HELO localhost.localdomain.localdomain) ([10.240.183.111]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2021 00:53:02 -0700 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Fri, 26 Mar 2021 15:49:45 +0800 Message-Id: <1616744985-18530-1-git-send-email-junx.w.zhou@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V2] tests/telemetry: adapt meson build 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" adapt meson build, need modify compile parameter and recompile for test Signed-off-by: Zhou Jun --- v1: adapt meson build v2: delete old method tests/TestSuite_telemetry.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_telemetry.py b/tests/TestSuite_telemetry.py index 7e474bc..e5dd1c7 100644 --- a/tests/TestSuite_telemetry.py +++ b/tests/TestSuite_telemetry.py @@ -44,11 +44,7 @@ from pmd_output import PmdOutput class TestTelemetry(TestCase): def set_compiler_switch(self): - cmd = ( - "sed -i -e " - "'s/CONFIG_RTE_LIBRTE_TELEMETRY=n/CONFIG_RTE_LIBRTE_TELEMETRY=y/g'" - " {}/config/common_base").format(self.target_dir) - self.d_a_console(cmd) + self.dut.set_build_options({'RTE_LIBRTE_TELEMETRY': 'y'}) def create_query_script(self): ''' @@ -588,7 +584,8 @@ class TestTelemetry(TestCase): """ Run after each test suite. """ - pass + self.dut.set_build_options({'RTE_LIBRTE_TELEMETRY': 'n'}) + self.dut.build_install_dpdk(self.target) def test_basic_connection(self): ''' -- 1.8.3.1