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 3D4B0A056A; Fri, 6 Mar 2020 09:55:45 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2F1B11BFE8; Fri, 6 Mar 2020 09:55:45 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 29E691BFE2 for ; Fri, 6 Mar 2020 09:55:42 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Mar 2020 00:55:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,521,1574150400"; d="scan'208";a="441877568" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.203]) by fmsmga006.fm.intel.com with ESMTP; 06 Mar 2020 00:55:41 -0800 From: lihong To: dts@dpdk.org Cc: lihong Date: Fri, 6 Mar 2020 09:26:49 +0800 Message-Id: <1583458010-1414-2-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1583458010-1414-1-git-send-email-lihongx.ma@intel.com> References: <1583458010-1414-1-git-send-email-lihongx.ma@intel.com> Subject: [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" 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 100644 --- a/framework/dut.py +++ b/framework/dut.py @@ -77,6 +77,7 @@ class Dut(Crb): self.virt_pids = [] self.prefix_subfix = str(os.getpid()) + '_' + time.strftime("%Y%m%d%H%M%S", time.localtime()) self.prefix_list = [] + self.hugepage_path = None def filter_cores_from_crb_cfg(self): # get core list from crbs.cfg @@ -175,7 +176,8 @@ class Dut(Crb): file_prefix = config['prefix'] + '_' + self.prefix_subfix else: file_prefix = 'dpdk' + '_' + self.prefix_subfix - self.prefix_list.append(file_prefix) + if file_prefix not in self.prefix_list: + self.prefix_list.append(file_prefix) # deal with vdev if 'vdevs' in config and len(config['vdevs']) != 0: -- 2.7.4