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 ACB7EA0567; Wed, 11 Mar 2020 08:36:36 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7C2ED1BF7F; Wed, 11 Mar 2020 08:36:36 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 72AAA2BE6 for ; Wed, 11 Mar 2020 08:36:34 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Mar 2020 00:36:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,540,1574150400"; d="scan'208";a="265900102" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga004.fm.intel.com with ESMTP; 11 Mar 2020 00:36:29 -0700 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 11 Mar 2020 00:36:29 -0700 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by SHSMSX605.ccr.corp.intel.com (10.109.6.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 11 Mar 2020 15:36:27 +0800 Received: from shsmsx602.ccr.corp.intel.com ([10.109.6.142]) by SHSMSX602.ccr.corp.intel.com ([10.109.6.142]) with mapi id 15.01.1713.004; Wed, 11 Mar 2020 15:36:27 +0800 From: "Zhao, XinfengX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH 2/2] framework: replace unnecessary send_command with send_expect Thread-Index: AQHV9avKRNHrGG7HTEWTzdXz6JJEeahCn59A Date: Wed, 11 Mar 2020 07:36:26 +0000 Message-ID: References: <20200308152309.46637-1-xinfengx.zhao@intel.com> <20200308152309.46637-2-xinfengx.zhao@intel.com> In-Reply-To: <20200308152309.46637-2-xinfengx.zhao@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 2/2] framework: replace unnecessary send_command with send_expect 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: Zhao, Xinfeng -----Original Message----- From: Zhao, XinfengX=20 Sent: Sunday, March 8, 2020 11:23 PM To: dts@dpdk.org Cc: Zhao, XinfengX Subject: [dts][PATCH 2/2] framework: replace unnecessary send_command with = send_expect Signed-off-by: xinfengx --- framework/project_dpdk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index 4c= 57e81..9ac3b1a 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -451,8 +451,8 @@ class DPDKdut(Dut): """ Get RTE configuration from config/defconfig_*. """ - out =3D self.session.send_command("cat config/defconfig_%s | sed '= /^#/d' | sed '/^\s*$/d'" - % self.target, 1) + out =3D self.send_expect("cat config/defconfig_%s | sed '/^#/d' | = sed '/^\s*$/d'" + % self.target, "# ") =20 def_rte_config =3D re.findall(config+'=3D(\S+)', out) if def_rte_config: -- 2.17.1