[dts] [PATCH V1 1/2] framework/dut: same prefix add once is enough
Tu, Lijuan
lijuan.tu at intel.com
Fri Mar 13 07:30:09 CET 2020
Applied the series, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of lihong
> Sent: Friday, March 6, 2020 9:27 AM
> To: dts at dpdk.org
> Cc: Ma, LihongX <lihongx.ma at intel.com>
> Subject: [dts] [PATCH V1 1/2] framework/dut: same prefix add once is
> enough
>
> Signed-off-by: lihong <lihongx.ma at 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
More information about the dts
mailing list