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 A1F62A00E6 for ; Mon, 5 Aug 2019 07:49:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 99E2D1BE68; Mon, 5 Aug 2019 07:49:56 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 2C1D31BE59 for ; Mon, 5 Aug 2019 07:49:54 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Aug 2019 22:49:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,348,1559545200"; d="scan'208";a="372969509" Received: from dpdk-moyufen01.sh.intel.com ([10.67.111.77]) by fmsmga005.fm.intel.com with ESMTP; 04 Aug 2019 22:49:53 -0700 From: yufengmx To: dts@dpdk.org Cc: yufengmx Date: Mon, 5 Aug 2019 13:50:38 +0800 Message-Id: <1564984244-151448-5-git-send-email-yufengx.mo@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1564984244-151448-1-git-send-email-yufengx.mo@intel.com> References: <1564984244-151448-1-git-send-email-yufengx.mo@intel.com> Subject: [dts] [PATCH V1 4/10] [next]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" *. move dut logger close after session close for logger used by session. *. fix typo. Signed-off-by: yufengmx --- framework/dut.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/dut.py b/framework/dut.py index fc4a2e6..448031d 100644 --- a/framework/dut.py +++ b/framework/dut.py @@ -207,7 +207,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 @@ -932,8 +932,8 @@ class Dut(Crb): 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 = port['pci'] @@ -1101,6 +1101,6 @@ class Dut(Crb): """ Recover all resource before crb exit """ - self.logger.logger_exit() self.enable_tester_ipv6() self.close() + self.logger.logger_exit() -- 1.9.3