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 EB9B1A04C1; Fri, 22 Nov 2019 07:17:23 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B59082C28; Fri, 22 Nov 2019 07:17:23 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 4F28E2BF9 for ; Fri, 22 Nov 2019 07:17:22 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Nov 2019 22:17:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,228,1571727600"; d="scan'208";a="407478138" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga005.fm.intel.com with ESMTP; 21 Nov 2019 22:17:20 -0800 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 21 Nov 2019 22:17:20 -0800 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 21 Nov 2019 22:17:20 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.213]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.63]) with mapi id 14.03.0439.000; Fri, 22 Nov 2019 14:17:18 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] framework/crb: optimization code Thread-Index: AQHVlTkCFUhyJgdKLUKGphMOfbQpD6eWzn+g Date: Fri, 22 Nov 2019 06:17:18 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB67866@SHSMSX101.ccr.corp.intel.com> References: <1573083278-26890-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1573083278-26890-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-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZmMxYzY2YTUtODVjNS00MTI0LWEyMDMtZDg4YWQ1MjI2ZWY1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoicHFWT1BrbkhzN0ZFVEZZY3Y5aVpxdEJsMmk2ZzFzZjh3dmRNSGx0YVwvUHNYN0pObmhOMGo0TU5lRU0zYjZUMm8ifQ== 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: optimization code 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: Thursday, November 7, 2019 7:35 AM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [PATCH V1] framework/crb: optimization code >=20 > Signed-off-by: lihong > --- > framework/crb.py | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) >=20 > diff --git a/framework/crb.py b/framework/crb.py index 91f2946..c1f2a1c > 100644 > --- a/framework/crb.py > +++ b/framework/crb.py > @@ -517,8 +517,7 @@ class Crb(object): > self.prefix_list =3D [] > else: > self.logger.info('kill_all: called by dut and has no pre= fix list.') > - session =3D self.create_session('dut_session') > - out =3D session.send_command("ls -l /var/run/dpdk |awk '= /^d/ {print > $NF}'", timeout=3D0.5) > + out =3D self.send_command("ls -l /var/run/dpdk |awk '/^d= / > + {print $NF}'", timeout=3D0.5, alt_session=3DTrue) > # the last directory is expect string, eg: [PEXPECT]# > if out !=3D '': > dir_list =3D out.split('\r\n') > -- > 2.7.4