From: "Ma, LihongX" <lihongx.ma@intel.com>
To: "dts@dpdk.org" <dts@dpdk.org>
Subject: Re: [dts] [PATCH V1 2/2] framework/crb: delete the mnt of hugepage when dut kill_all
Date: Fri, 6 Mar 2020 08:57:02 +0000 [thread overview]
Message-ID: <21a46279e5f24881a113f445ac7fd78c@intel.com> (raw)
In-Reply-To: <1583458010-1414-3-git-send-email-lihongx.ma@intel.com>
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
next prev parent reply other threads:[~2020-03-06 8:57 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 ` [dts] [PATCH V1 2/2] framework/crb: delete the mnt of hugepage when dut kill_all lihong
2020-03-06 8:57 ` Ma, LihongX [this message]
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=21a46279e5f24881a113f445ac7fd78c@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).