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 59AB9A0583; Fri, 20 Mar 2020 09:06:21 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4FC751C02A; Fri, 20 Mar 2020 09:06:21 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 2735B2BF2 for ; Fri, 20 Mar 2020 09:06:19 +0100 (CET) IronPort-SDR: WMOMzXltFyWfHmatUp61rlewy3zRu5Rmybkz0BNwHNXCQePyPr14M+xuFksSpHX3B1wlRFbaWy E3PKX2lr/A0g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2020 01:06:19 -0700 IronPort-SDR: tXGoMFCm/QkWXhlDVDAXNUWrCLKEHrz52IOrWYSWwVgFUlMxhaRlTiiz+7YoUDxYryQ9XIfacf PFFFg2rfHK/A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,283,1580803200"; d="scan'208";a="264000272" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 20 Mar 2020 01:06:18 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 20 Mar 2020 01:06:18 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 20 Mar 2020 01:06:18 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.206]) with mapi id 14.03.0439.000; Fri, 20 Mar 2020 16:06:16 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] framework/crb: fix issue of rm file Thread-Index: AQHV+1C8EHvLY0iaZEecuYpVboSPbqhRJjNA Date: Fri, 20 Mar 2020 08:06:15 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBEFA8C@SHSMSX101.ccr.corp.intel.com> References: <1584308189-7809-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1584308189-7809-1-git-send-email-lihongx.ma@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] framework/crb: fix issue of rm file 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong > Sent: Monday, March 16, 2020 5:36 AM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [PATCH V1] framework/crb: fix issue of rm file >=20 > Signed-off-by: lihong > --- > framework/crb.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/framework/crb.py b/framework/crb.py index 538aa6c..cf0493f > 100644 > --- a/framework/crb.py > +++ b/framework/crb.py > @@ -530,7 +530,7 @@ class Crb(object): > # 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) > + cmd =3D 'rm -rf %s/%s*' % (self.hugepage_path, > + file_prefix) > self.send_expect(cmd, '# ', 20, alt_session) >=20 > def kill_all(self, alt_session=3DTrue): > -- > 2.7.4