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 571E6A0563; Wed, 4 Mar 2020 03:49:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4DD222C16; Wed, 4 Mar 2020 03:49:03 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id BABF32C02 for ; Wed, 4 Mar 2020 03:49:01 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Mar 2020 18:49:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,511,1574150400"; d="scan'208";a="233965306" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.222]) by fmsmga008.fm.intel.com with ESMTP; 03 Mar 2020 18:49:00 -0800 From: yufengmx To: dts@dpdk.org, weix.xie@intel.com, yinan.wang@intel.com Cc: yufengmx Date: Wed, 4 Mar 2020 10:53:07 +0800 Message-Id: <20200304025307.4677-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200304025307.4677-1-yufengx.mo@intel.com> References: <20200304025307.4677-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 1/1] metrics: add prefix for new frame work. 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" add prefix for new frame work. Signed-off-by: yufengmx --- tests/TestSuite_metrics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_metrics.py b/tests/TestSuite_metrics.py index 148365c..da192b9 100644 --- a/tests/TestSuite_metrics.py +++ b/tests/TestSuite_metrics.py @@ -187,7 +187,7 @@ class TestMetrics(TestCase): self.is_pmd_on = False def init_proc_info_tool(self): - option = ' -v -- --metrics' + option = f' -v -- --metrics {self.prefix}' self.dpdk_proc = os.path.join( self.target_dir, self.target, "app", "dpdk-procinfo" + option) self.metrics_stat = [] @@ -785,6 +785,7 @@ class TestMetrics(TestCase): def set_up_all(self): self.dut_ports = self.dut.get_ports(self.nic) self.verify(len(self.dut_ports) >= 2, "Not enough ports") + self.prefix = "dpdk_" + self.dut.prefix_subfix # prepare testing environment self.preset_test_environment() -- 2.21.0