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 960EAA056C; Wed, 4 Mar 2020 09:21:35 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 029931BFA9; Wed, 4 Mar 2020 09:21:35 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 84886FEB for ; Wed, 4 Mar 2020 09:21:33 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Mar 2020 00:21:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,513,1574150400"; d="scan'208";a="233951823" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.222]) by orsmga008.jf.intel.com with ESMTP; 04 Mar 2020 00:21:31 -0800 From: yufengmx To: dts@dpdk.org, yinan.wang@intel.com, weix.xie@intel.com Cc: yufengmx Date: Wed, 4 Mar 2020 16:25:37 +0800 Message-Id: <20200304082537.6134-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200304082537.6134-1-yufengx.mo@intel.com> References: <20200304082537.6134-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V3 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..7fef17d 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 --file-prefix={self.prefix} -- --metrics' 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