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 4A128A0567; Fri, 13 Mar 2020 07:30:15 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4225F1C01F; Fri, 13 Mar 2020 07:30:15 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id C8F9F1C01E for ; Fri, 13 Mar 2020 07:30:13 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2020 23:30:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,547,1574150400"; d="scan'208";a="235245988" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga007.fm.intel.com with ESMTP; 12 Mar 2020 23:30:12 -0700 Received: from fmsmsx163.amr.corp.intel.com (10.18.125.72) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Mar 2020 23:30:12 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx163.amr.corp.intel.com (10.18.125.72) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Mar 2020 23:30:12 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.137]) with mapi id 14.03.0439.000; Fri, 13 Mar 2020 14:30:10 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1 1/2] framework/dut: same prefix add once is enough Thread-Index: AQHV85USHe0UOGIiek2I7npIuT8RGahGGnzA Date: Fri, 13 Mar 2020 06:30:09 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBEC736@SHSMSX101.ccr.corp.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: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] 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" Applied the series, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong > 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 >=20 > Signed-off-by: lihong > --- > framework/dut.py | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/framework/dut.py b/framework/dut.py index 4b8bd3e..c3e7c86 > 100644 > --- 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= _subfix > 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