From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5EAC6A056A; Fri, 6 Mar 2020 09:55:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 563AA1BFE2; Fri, 6 Mar 2020 09:55:46 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id DBAA11BFE2 for ; Fri, 6 Mar 2020 09:55:44 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Mar 2020 00:55:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,521,1574150400"; d="scan'208";a="441877578" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.203]) by fmsmga006.fm.intel.com with ESMTP; 06 Mar 2020 00:55:43 -0800 From: lihong To: dts@dpdk.org Cc: lihong Date: Fri, 6 Mar 2020 09:26:50 +0800 Message-Id: <1583458010-1414-3-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1583458010-1414-1-git-send-email-lihongx.ma@intel.com> References: <1583458010-1414-1-git-send-email-lihongx.ma@intel.com> Subject: [dts] [PATCH V1 2/2] framework/crb: delete the mnt of hugepage when dut kill_all X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: lihong --- 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