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 18063A3201 for ; Mon, 21 Oct 2019 04:23:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0C66829D2; Mon, 21 Oct 2019 04:23:20 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 645919E4 for ; Mon, 21 Oct 2019 04:23:18 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Oct 2019 19:23:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,321,1566889200"; d="scan'208";a="187402940" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga007.jf.intel.com with ESMTP; 20 Oct 2019 19:23:17 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 20 Oct 2019 19:23:16 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sun, 20 Oct 2019 19:23:16 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Sun, 20 Oct 2019 19:23:16 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.96]) by shsmsx102.ccr.corp.intel.com ([169.254.2.176]) with mapi id 14.03.0439.000; Mon, 21 Oct 2019 10:23:15 +0800 From: "Tu, Lijuan" To: "Zhao, HaiyangX" , "dts@dpdk.org" CC: "Zhao, HaiyangX" Thread-Topic: [dts] [PATCH V1 1/3] framework/pmd_output:fix a bug in execute_cmd Thread-Index: AQHVgOLEfKCJA1834EyOm55Ritqe4Kdkayvg Date: Mon, 21 Oct 2019 02:23:15 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB42EEF@SHSMSX101.ccr.corp.intel.com> References: <1570874241-92780-1-git-send-email-haiyangx.zhao@intel.com> In-Reply-To: <1570874241-92780-1-git-send-email-haiyangx.zhao@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMWM4MzQ4ODctMWQ1Mi00N2UyLWE1ODYtYjQ5ODJlZTI0NzA2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUTRVK2ZTc2tsUVl3ZG1XZ1V3SnBcL0daZHVXQ2Q5RzRnd2Y5YnZ6OFFhUjNMSHhVN2h3SjRibGhYWUs5VFBKQXMifQ== 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 1/3] framework/pmd_output:fix a bug in execute_cmd 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 the series, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Haiyang Zhao > Sent: Saturday, October 12, 2019 5:57 PM > To: dts@dpdk.org > Cc: Zhao, HaiyangX > Subject: [dts] [PATCH V1 1/3] framework/pmd_output:fix a bug in > execute_cmd >=20 > *.when session is not a dut instance, > function send_expect has no keyword arg alt_session. >=20 > Signed-off-by: Haiyang Zhao > --- > framework/pmd_output.py | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 > diff --git a/framework/pmd_output.py b/framework/pmd_output.py index > bcb3865..13dd6f1 100644 > --- a/framework/pmd_output.py > +++ b/framework/pmd_output.py > @@ -183,8 +183,11 @@ class PmdOutput(): >=20 > def execute_cmd(self, pmd_cmd, expected=3D'testpmd> ', > timeout=3DTIMEOUT, > alt_session=3DFalse): > - return self.session.send_expect('%s' % pmd_cmd, expected, > timeout=3Dtimeout, > + if 'dut' in str(self.session): > + return self.session.send_expect('%s' % pmd_cmd, expected, > + timeout=3Dtimeout, > alt_session=3Dalt_session) > + else: > + return self.session.send_expect('%s' % pmd_cmd, expected, > + timeout=3Dtimeout) >=20 > def get_output(self, timeout=3D1): > if 'dut' in str(self.session): > -- > 1.8.3.1