From: lihong <lihongx.ma@intel.com>
To: dts@dpdk.org
Cc: lihong <lihongx.ma@intel.com>
Subject: [dts] [PATCH V1 1/2] framework/dut: same prefix add once is enough
Date: Fri, 6 Mar 2020 09:26:49 +0800 [thread overview]
Message-ID: <1583458010-1414-2-git-send-email-lihongx.ma@intel.com> (raw)
In-Reply-To: <1583458010-1414-1-git-send-email-lihongx.ma@intel.com>
Signed-off-by: lihong <lihongx.ma@intel.com>
---
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
next prev parent reply other threads:[~2020-03-06 8:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-06 1:26 [dts] [PATCH V1 0/2] " lihong
2020-03-06 1:26 ` lihong [this message]
2020-03-06 8:57 ` [dts] [PATCH V1 1/2] " Ma, LihongX
2020-03-13 6:30 ` Tu, Lijuan
2020-03-06 1:26 ` [dts] [PATCH V1 2/2] framework/crb: delete the mnt of hugepage when dut kill_all lihong
2020-03-06 8:57 ` Ma, LihongX
2020-03-06 8:57 ` [dts] [PATCH V1 0/2] framework/dut: same prefix add once is enough Ma, LihongX
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1583458010-1414-2-git-send-email-lihongx.ma@intel.com \
--to=lihongx.ma@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).