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 50509A04B4; Wed, 26 Aug 2020 13:04:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EC5C5AAB7; Wed, 26 Aug 2020 13:04:40 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id DACC758C4 for ; Wed, 26 Aug 2020 13:04:38 +0200 (CEST) IronPort-SDR: CXmxY2X0RKcFrzgL86pGaULEtpG6BGh0Xe6ecxIXQ7tVeLqQY7GsQ1s9u/gE3q+EmmMPwrZfXA QES9dwdUyaNA== X-IronPort-AV: E=McAfee;i="6000,8403,9724"; a="153842262" X-IronPort-AV: E=Sophos;i="5.76,355,1592895600"; d="scan'208";a="153842262" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2020 04:04:37 -0700 IronPort-SDR: VrIADGSlh7ozV9Ght8HoqosucYLUvE7dU6vE18VsrZu79+thTCKGMpyi4k/BlcL5grAC1zuZD4 T4CNeq2QthWg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,355,1592895600"; d="scan'208";a="443995847" Received: from fmsmsx604-2.cps.intel.com (HELO fmsmsx604.amr.corp.intel.com) ([10.18.84.214]) by orsmga004.jf.intel.com with ESMTP; 26 Aug 2020 04:04:37 -0700 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 26 Aug 2020 04:04:36 -0700 Received: from fmsmsx101.amr.corp.intel.com (10.18.124.199) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 26 Aug 2020 04:04:36 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by fmsmsx101.amr.corp.intel.com (10.18.124.199) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 26 Aug 2020 04:04:35 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.177) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 26 Aug 2020 04:04:35 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hKxEnoY2TYHdnhv5A6bshvvL85iWf9owJFeruTSU9Ia8Q82OIB+If4ES1rqdr8twXv8Mdf/nq/SWsVAicvedpNukMUlUlNYPQppMhpTjtw5YfVP2BZrC0bAMhfN+pPHHSTfBVnSL49Fc60ihK+Kwmbr0kjOQ8BgPt50RKSSkmd+EspiALdjWJUHalXkzMAAfKhU55UbekL+S6tXT8ctOFPh/gtqE21BmBZnuTQDCAnrWE6vaWqFL9pbI7mJ3Z+CbqJO7AqVCxVM4jVC5yrlKbGlu+bhXTEnM/I2hTPdvSJnbl1hm/CCIlK+eIaj9+01m1Od+5tb9mAsPSLYM3kBTog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=f7IS9PDEe5hOVuY+xW4kQG/49jzfamMS4HfI1GCXKTk=; b=SnPKLH0Fjfwyp3umZSde3ScyUaBJfmiy2TYpNZwZAGqw+8AxxR+FEp6DdpiUvD7JMwrZqONINPZwJAoJl8XiNPrEmhmJoH3qnnz7vSiQekMM1ceJxi9aCv9GwMLoo7ts27yz9Z9A3+L0VgNxlMbEE/Djr/gF47RZGcojcCvbeq2I+SuiZRvDt+kVk80SveZ2kuZEfHUS+vY90X1v/v1sqRn4oS9EF+jQU02P/GhGXNbrvy5rGxU6+k/BXh2IkHLOKV2jcv4I3T978rgoq1rz6M3xfkw2HDOF72NEcLm6MmkKPWYXOjlb9aekI72R8um1gGMbShor3RdVy4LNE60vow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=f7IS9PDEe5hOVuY+xW4kQG/49jzfamMS4HfI1GCXKTk=; b=dYlDbUAj/sw2Et1akrQLBwPot7vYGTyhRtZKwJH7DLRFPYWITMOE+h+4rd0Qj03rV85gBhJaLcLvE9XP7HlVY+0a37ywnTOfhanAWR9QI9cmM+9xVayeVRTBKMik8bDl4xjFHiBmAFZt0TdQBgMcY2TlxDjeo/FmGIOfDxuFxGc= Received: from CY4PR1101MB2247.namprd11.prod.outlook.com (2603:10b6:910:19::19) by CY4PR1101MB2245.namprd11.prod.outlook.com (2603:10b6:910:1f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.24; Wed, 26 Aug 2020 11:04:34 +0000 Received: from CY4PR1101MB2247.namprd11.prod.outlook.com ([fe80::7d94:a160:c2d3:86fd]) by CY4PR1101MB2247.namprd11.prod.outlook.com ([fe80::7d94:a160:c2d3:86fd%4]) with mapi id 15.20.3326.019; Wed, 26 Aug 2020 11:04:34 +0000 From: "Xiao, QimaiX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1]framework/ssh_connection: fix output might be int Thread-Index: AQHWe01Ie3rNRlpXV0CTMvqvlUzRA6lKOqgQ Date: Wed, 26 Aug 2020 11:04:34 +0000 Message-ID: References: <20200826015319.106866-1-qimaix.xiao@intel.com> In-Reply-To: <20200826015319.106866-1-qimaix.xiao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.45] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c97448ed-bba0-4d23-d3af-08d849afd0ea x-ms-traffictypediagnostic: CY4PR1101MB2245: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1091; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: tD8cUQADJA6uNKduIcmOpKMpT5rbsaHfKJDkcG5pr+ndTsWYGpJ2O8oDKV6U+nlRXAJFDbe1lKJEzUNoFedyY6bicybPTHZmV+H4ZoUw2j7lWs5gtTTnl+ONwDWMQFBWmfXDqB/+xBK7xpsyDbdMcbVf6vAmZLwiDurrlhaK9H5tWWth2rCheOKy9Pa8Nupkm+7QBoIAZkhQfmbl0PLGPM/l2uITQFqTw6rHPs9tvI5uoCWkhGGSdI7pEKN71epiDwHmP16OV57AVZGV0djiUDObrc1UVpaZZZR6LauNQp8AeNV+U8N+kwI8aEtWKTUojHspHh0dSu3ahyTDUCOTjQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY4PR1101MB2247.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(396003)(366004)(39860400002)(376002)(136003)(9686003)(2906002)(33656002)(52536014)(5660300002)(478600001)(316002)(8676002)(6506007)(186003)(55016002)(26005)(53546011)(6916009)(8936002)(66556008)(86362001)(83380400001)(64756008)(66476007)(66946007)(76116006)(7696005)(66446008)(71200400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: sEILG3Zti20bGiS8FR/au7gHDVxEM05puYv2F3SIetlUWYnla/IFPsTA7OeeAikWKwGZYNu3akZRYi/bN5SCaUVyVh3AcrICnCG7tSzT3pzgyeuZh+ifup7W36YDkOWzShW3rz7JTvRjxFYdkA63CDlA1I5KIs2sb/wAe7Lv2VBh/5BRWkHzqJoe4HWSvrYiKjkP34gn241TRR3m6Gxeixzn3Dr4vojREOy0cghvDOeEbpXEJLpgoWXRlOEaFQ2C83BAu6pBam6dRNzkIdnuWxswuMJNZhJkcIagwQYZXg3D2jPIMNFswgj+Gr/pfTMJgxt1k7Lzn3tV1JJtkRpIoDMUIAPmuZBiYWg0HbEJYDvKS8pk4q9nqct8mBkBLWpnFoXeM2MuUtJykCQepK8OB5lxM3Sg/C+NcMkYqMJVJJ/Agb0oe7piGDABhtIQ/AZ6AQE0v8yUHJtkO6rnbX62tAbvOiUwEfVdAuLvl0rboUTHL4ViPveZFBuEk6XvevA0WBxU05Qk4nn6+m2e6Hys88aADzVHn0zZDqTCb9wDSffgnNMy0sZVcWjCWlmMvbCR2KPrvAo+uxrAz7ugFV8b/KXUJb4c3UFVI3gR55bldMA5k7OnwHrtC6hsPEnY0KZlPFCBAjERmVQu8erKaD2QfA== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY4PR1101MB2247.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c97448ed-bba0-4d23-d3af-08d849afd0ea X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Aug 2020 11:04:34.4670 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: bCYLXZjkeD8fJy8OZWK31XgGkHkLPCOSQxuz7JwRoOKDio6cUWhxpjtak+njLjKOOGL75yAyFk53CahF42CRzQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1101MB2245 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH V1]framework/ssh_connection: fix output might be int 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: Xiao Qimai Regards, Xiao Qimai > -----Original Message----- > From: Xiao, QimaiX > Sent: Wednesday, August 26, 2020 9:53 AM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts][PATCH V1]framework/ssh_connection: fix output might be int >=20 > *. when verify is True in send_expect, the output might be type int. >=20 > Signed-off-by: Xiao Qimai > --- > framework/ssh_connection.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/framework/ssh_connection.py b/framework/ssh_connection.py > index e096a9e..c9886b2 100644 > --- a/framework/ssh_connection.py > +++ b/framework/ssh_connection.py > @@ -62,7 +62,8 @@ class SSHConnection(object): > def send_expect(self, cmds, expected, timeout=3D15, verify=3DFalse): > self.logger.info(cmds) > out =3D self.session.send_expect(cmds, expected, timeout, verify= ) > - self.logger.debug(out.replace(cmds, '')) > + if isinstance(out, str): > + self.logger.debug(out.replace(cmds, '')) > if type(self.history) is list: > self.history.append({"command": cmds, "name": self.name, "ou= tput": > out}) > return out > -- > 2.25.1