test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1 0/2] framework/dut: same prefix add once is enough
@ 2020-03-06  1:26 lihong
  2020-03-06  1:26 ` [dts] [PATCH V1 1/2] " lihong
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: lihong @ 2020-03-06  1:26 UTC (permalink / raw)
  To: dts; +Cc: lihong

* delete the hugepage in the mount path after kill testpmd

lihong (2):
  framework/dut: same prefix add once is enough
  framework/crb: delete the mnt of hugepage when dut kill_all

 framework/crb.py | 6 ++++++
 framework/dut.py | 4 +++-
 2 files changed, 9 insertions(+), 1 deletion(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [dts] [PATCH V1 1/2] framework/dut: same prefix add once is enough
  2020-03-06  1:26 [dts] [PATCH V1 0/2] framework/dut: same prefix add once is enough lihong
@ 2020-03-06  1:26 ` lihong
  2020-03-06  8:57   ` 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 ` [dts] [PATCH V1 0/2] framework/dut: same prefix add once is enough Ma, LihongX
  2 siblings, 2 replies; 7+ messages in thread
From: lihong @ 2020-03-06  1:26 UTC (permalink / raw)
  To: dts; +Cc: lihong

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [dts] [PATCH V1 2/2] framework/crb: delete the mnt of hugepage when dut kill_all
  2020-03-06  1:26 [dts] [PATCH V1 0/2] framework/dut: same prefix add once is enough lihong
  2020-03-06  1:26 ` [dts] [PATCH V1 1/2] " lihong
@ 2020-03-06  1:26 ` 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
  2 siblings, 1 reply; 7+ messages in thread
From: lihong @ 2020-03-06  1:26 UTC (permalink / raw)
  To: dts; +Cc: lihong

Signed-off-by: lihong <lihongx.ma@intel.com>
---
 framework/crb.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/framework/crb.py b/framework/crb.py
index 2bf99e1..538aa6c 100644
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -527,6 +527,12 @@ class Crb(object):
             cmd = 'rm -rf %s' % directory
             self.send_expect(cmd, "# ", 20, alt_session)
 
+        # delete hugepage on mnt path
+        if getattr(self, 'hugepage_path', None):
+            for file_prefix in prefix_list:
+                cmd = 'rm %s/%s*' % (self.hugepage_path, file_prefix)
+                self.send_expect(cmd, '# ', 20, alt_session)
+
     def kill_all(self, alt_session=True):
         """
         Kill all dpdk applications on CRB.
-- 
2.7.4


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [dts] [PATCH V1 2/2] framework/crb: delete the mnt of hugepage when dut kill_all
  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
  0 siblings, 0 replies; 7+ messages in thread
From: Ma, LihongX @ 2020-03-06  8:57 UTC (permalink / raw)
  To: dts

Tested-by:ma,lihong<lihongx.ma@intel.com>

Regards,
Ma,lihong


-----Original Message-----
From: Ma, LihongX 
Sent: Friday, March 6, 2020 9:27 AM
To: dts@dpdk.org
Cc: Ma, LihongX <lihongx.ma@intel.com>
Subject: [dts][PATCH V1 2/2] framework/crb: delete the mnt of hugepage when dut kill_all

Signed-off-by: lihong <lihongx.ma@intel.com>
---
 framework/crb.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/framework/crb.py b/framework/crb.py index 2bf99e1..538aa6c 100644
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -527,6 +527,12 @@ class Crb(object):
             cmd = 'rm -rf %s' % directory
             self.send_expect(cmd, "# ", 20, alt_session)
 
+        # delete hugepage on mnt path
+        if getattr(self, 'hugepage_path', None):
+            for file_prefix in prefix_list:
+                cmd = 'rm %s/%s*' % (self.hugepage_path, file_prefix)
+                self.send_expect(cmd, '# ', 20, alt_session)
+
     def kill_all(self, alt_session=True):
         """
         Kill all dpdk applications on CRB.
--
2.7.4


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [dts] [PATCH V1 0/2] framework/dut: same prefix add once is enough
  2020-03-06  1:26 [dts] [PATCH V1 0/2] framework/dut: same prefix add once is enough lihong
  2020-03-06  1:26 ` [dts] [PATCH V1 1/2] " lihong
  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
  2 siblings, 0 replies; 7+ messages in thread
From: Ma, LihongX @ 2020-03-06  8:57 UTC (permalink / raw)
  To: dts

Tested-by:ma,lihong<lihongx.ma@intel.com>

Regards,
Ma,lihong


-----Original Message-----
From: Ma, LihongX 
Sent: Friday, March 6, 2020 9:27 AM
To: dts@dpdk.org
Cc: Ma, LihongX <lihongx.ma@intel.com>
Subject: [dts][PATCH V1 0/2] framework/dut: same prefix add once is enough

* delete the hugepage in the mount path after kill testpmd

lihong (2):
  framework/dut: same prefix add once is enough
  framework/crb: delete the mnt of hugepage when dut kill_all

 framework/crb.py | 6 ++++++
 framework/dut.py | 4 +++-
 2 files changed, 9 insertions(+), 1 deletion(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [dts] [PATCH V1 1/2] framework/dut: same prefix add once is enough
  2020-03-06  1:26 ` [dts] [PATCH V1 1/2] " lihong
@ 2020-03-06  8:57   ` Ma, LihongX
  2020-03-13  6:30   ` Tu, Lijuan
  1 sibling, 0 replies; 7+ messages in thread
From: Ma, LihongX @ 2020-03-06  8:57 UTC (permalink / raw)
  To: dts

Tested-by:ma,lihong<lihongx.ma@intel.com>

Regards,
Ma,lihong


-----Original Message-----
From: Ma, LihongX 
Sent: Friday, March 6, 2020 9:27 AM
To: dts@dpdk.org
Cc: Ma, LihongX <lihongx.ma@intel.com>
Subject: [dts][PATCH V1 1/2] framework/dut: same prefix add once is enough

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [dts] [PATCH V1 1/2] framework/dut: same prefix add once is enough
  2020-03-06  1:26 ` [dts] [PATCH V1 1/2] " lihong
  2020-03-06  8:57   ` Ma, LihongX
@ 2020-03-13  6:30   ` Tu, Lijuan
  1 sibling, 0 replies; 7+ messages in thread
From: Tu, Lijuan @ 2020-03-13  6:30 UTC (permalink / raw)
  To: Ma, LihongX, dts; +Cc: Ma, LihongX

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 <lihongx.ma@intel.com>
> Subject: [dts] [PATCH V1 1/2] framework/dut: same prefix add once is
> enough
> 
> 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-03-13  6:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-06  1:26 [dts] [PATCH V1 0/2] framework/dut: same prefix add once is enough lihong
2020-03-06  1:26 ` [dts] [PATCH V1 1/2] " lihong
2020-03-06  8:57   ` 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

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).