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 14027A056A; Fri, 6 Mar 2020 09:57:15 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 06EE71BFE1; Fri, 6 Mar 2020 09:57:15 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id B099A1BFBB for ; Fri, 6 Mar 2020 09:57:13 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Mar 2020 00:57:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,518,1574150400"; d="scan'208";a="259499085" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 06 Mar 2020 00:57:12 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 6 Mar 2020 00:57:11 -0800 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 6 Mar 2020 16:57:09 +0800 Received: from shsmsx603.ccr.corp.intel.com ([10.109.6.143]) by SHSMSX603.ccr.corp.intel.com ([10.109.6.143]) with mapi id 15.01.1713.004; Fri, 6 Mar 2020 16:57:09 +0800 From: "Ma, LihongX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1 1/2] framework/dut: same prefix add once is enough Thread-Index: AQHV85UJhZ+xNXWHYUS+vJTlLXq9iag7Q0Kw Date: Fri, 6 Mar 2020 08:57:09 +0000 Message-ID: <5e6db2c152744b939398ab38ba12d09e@intel.com> References: <1583458010-1414-1-git-send-email-lihongx.ma@intel.com> <1583458010-1414-2-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1583458010-1414-2-git-send-email-lihongx.ma@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 1/2] framework/dut: same prefix add once is enough 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" Tested-by:ma,lihong Regards, Ma,lihong -----Original Message----- From: Ma, LihongX=20 Sent: Friday, March 6, 2020 9:27 AM To: dts@dpdk.org Cc: Ma, LihongX Subject: [dts][PATCH V1 1/2] framework/dut: same prefix add once is enough Signed-off-by: lihong --- framework/dut.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/dut.py b/framework/dut.py index 4b8bd3e..c3e7c86 100= 644 --- a/framework/dut.py +++ b/framework/dut.py @@ -77,6 +77,7 @@ class Dut(Crb): self.virt_pids =3D [] self.prefix_subfix =3D str(os.getpid()) + '_' + time.strftime("%Y%= m%d%H%M%S", time.localtime()) self.prefix_list =3D [] + self.hugepage_path =3D None =20 def filter_cores_from_crb_cfg(self): # get core list from crbs.cfg @@ -175,7 +176,8 @@ class Dut(Crb): file_prefix =3D config['prefix'] + '_' + self.prefix_s= ubfix else: file_prefix =3D 'dpdk' + '_' + self.prefix_subfix - self.prefix_list.append(file_prefix) + if file_prefix not in self.prefix_list: + self.prefix_list.append(file_prefix) =20 # deal with vdev if 'vdevs' in config and len(config['vdevs']) !=3D 0: -- 2.7.4