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 81906A0613 for ; Mon, 23 Sep 2019 08:58:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6E6E91BE8B; Mon, 23 Sep 2019 08:58:24 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 7F3731B9A9 for ; Mon, 23 Sep 2019 08:58:22 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Sep 2019 23:58:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,539,1559545200"; d="scan'208";a="188058242" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga008.fm.intel.com with ESMTP; 22 Sep 2019 23:58:21 -0700 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 22 Sep 2019 23:58:21 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 22 Sep 2019 23:58:20 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.113]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.132]) with mapi id 14.03.0439.000; Mon, 23 Sep 2019 14:58:19 +0800 From: "Mo, YufengX" To: "dts@dpdk.org" , "Li, WenjieX A" , "Chen, Zhaoyan" , "Tu, Lijuan" Thread-Topic: [dts][PATCH V2 2/7] framework/dut: fix logger quit issue Thread-Index: AQHVcdsDzvvlPCestk66jYpdnsH1gKc41NWg Date: Mon, 23 Sep 2019 06:58:18 +0000 Message-ID: References: <20190923065040.8251-1-yufengx.mo@intel.com> <20190923065040.8251-3-yufengx.mo@intel.com> In-Reply-To: <20190923065040.8251-3-yufengx.mo@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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 V2 2/7] framework/dut: fix logger quit issue 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 Mo, YufengX > -----Original Message----- > From: Mo, YufengX > Sent: Monday, September 23, 2019 2:51 PM > To: dts@dpdk.org; Li, WenjieX A ; Chen, Zhaoyan <= zhaoyan.chen@intel.com>; Tu, Lijuan > Cc: Mo, YufengX > Subject: [dts][PATCH V2 2/7] framework/dut: fix logger quit issue >=20 >=20 > *. move dut logger close after session close for logger used by session. > *. fix typo. >=20 > Signed-off-by: yufengmx > --- > framework/dut.py | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/framework/dut.py b/framework/dut.py > index 1779d3a..a394b34 100644 > --- a/framework/dut.py > +++ b/framework/dut.py > @@ -208,7 +208,7 @@ class Dut(Crb): > self.restore_interfaces() > # rescan ports after interface up > self.rescan_ports() > - # load port infor from config file > + # load port information from config file > self.load_portconf() > self.mount_procfs() > # auto detect network topology > @@ -933,8 +933,8 @@ class Dut(Crb): >=20 > def load_portconf(self): > """ > - Load port configurations for ports_info. If manually configured = infor > - not same as auto scanned, still use infor in configuration file. > + Load port configurations for ports_info. If manually configured = info > + not same as auto scanned, still use information in configuration= file. > """ > for port in self.ports_info: > pci_bus =3D port['pci'] > @@ -1097,6 +1097,6 @@ class Dut(Crb): > """ > Recover all resource before crb exit > """ > - self.logger.logger_exit() > self.enable_tester_ipv6() > self.close() > + self.logger.logger_exit() > -- > 2.21.0