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 A7221A056A; Fri, 6 Mar 2020 09:57:07 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9F7D31BFD2; Fri, 6 Mar 2020 09:57:07 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 54B121BFBB for ; Fri, 6 Mar 2020 09:57:06 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Mar 2020 00:57:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,521,1574150400"; d="scan'208";a="234802139" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga008.fm.intel.com with ESMTP; 06 Mar 2020 00:57:05 -0800 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 6 Mar 2020 00:57:05 -0800 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by SHSMSX606.ccr.corp.intel.com (10.109.6.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 6 Mar 2020 16:57:03 +0800 Received: from shsmsx603.ccr.corp.intel.com ([10.109.6.143]) by SHSMSX603.ccr.corp.intel.com ([10.109.6.143]) with mapi id 15.01.1713.004; Fri, 6 Mar 2020 16:57:02 +0800 From: "Ma, LihongX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1 2/2] framework/crb: delete the mnt of hugepage when dut kill_all Thread-Index: AQHV85UG9bmXtH/hP0OF+CTTcQpDeag7QytA Date: Fri, 6 Mar 2020 08:57:02 +0000 Message-ID: <21a46279e5f24881a113f445ac7fd78c@intel.com> References: <1583458010-1414-1-git-send-email-lihongx.ma@intel.com> <1583458010-1414-3-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1583458010-1414-3-git-send-email-lihongx.ma@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Tested-by:ma,lihong Regards, Ma,lihong -----Original Message----- From: Ma, LihongX=20 Sent: Friday, March 6, 2020 9:27 AM To: dts@dpdk.org Cc: Ma, LihongX Subject: [dts][PATCH V1 2/2] framework/crb: delete the mnt of hugepage when= dut kill_all 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 100= 644 --- a/framework/crb.py +++ b/framework/crb.py @@ -527,6 +527,12 @@ class Crb(object): cmd =3D 'rm -rf %s' % directory self.send_expect(cmd, "# ", 20, alt_session) =20 + # delete hugepage on mnt path + if getattr(self, 'hugepage_path', None): + for file_prefix in prefix_list: + cmd =3D 'rm %s/%s*' % (self.hugepage_path, file_prefix) + self.send_expect(cmd, '# ', 20, alt_session) + def kill_all(self, alt_session=3DTrue): """ Kill all dpdk applications on CRB. -- 2.7.4