test suite reviews and discussions
 help / color / mirror / Atom feed
From: lihong <lihongx.ma@intel.com>
To: dts@dpdk.org
Cc: lihong <lihongx.ma@intel.com>
Subject: [dts] [PATCH V1 2/2] framework/crb: delete the mnt of hugepage when dut kill_all
Date: Fri,  6 Mar 2020 09:26:50 +0800	[thread overview]
Message-ID: <1583458010-1414-3-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/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


  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] 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 ` lihong [this message]
2020-03-06  8:57   ` [dts] [PATCH V1 2/2] framework/crb: delete the mnt of hugepage when dut kill_all 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-3-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).