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 C7C18A0559; Tue, 17 Mar 2020 06:17:38 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B82B9292D; Tue, 17 Mar 2020 06:17:38 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 645F525D9 for ; Tue, 17 Mar 2020 06:17:37 +0100 (CET) IronPort-SDR: 7AvSBVOHtmko5Xchs2Eg/35QaV/yXW4Do51q9zgfUnXcUWTyBGUqt5LAlKDDsFv9a9n60nOaCy 1yDXtv9TTGKg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2020 22:17:36 -0700 IronPort-SDR: IBvAEo7sb44S4y+rDQyUoT6cenTMFw72XvPCeacUzikaBqCUC5U8WMB5Q1vnTMQ+QYkokCQXbr AxbIrM5TQDsg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,563,1574150400"; d="scan'208";a="262917228" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga002.jf.intel.com with ESMTP; 16 Mar 2020 22:17:36 -0700 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 16 Mar 2020 22:17:35 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 16 Mar 2020 22:17:35 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.145]) with mapi id 14.03.0439.000; Tue, 17 Mar 2020 13:17:32 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1]tests/TestSuite_vhost_pmd_xstats: fix lost case result when teardown fail Thread-Index: AQHV+GCUXYrdgtCN5060mf+zON7WIKhMRe9A Date: Tue, 17 Mar 2020 05:17:32 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBEE9A6@SHSMSX101.ccr.corp.intel.com> References: <1584011747-198122-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1584011747-198122-1-git-send-email-qimaix.xiao@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-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]tests/TestSuite_vhost_pmd_xstats: fix lost case result when teardown fail 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, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > Sent: Thursday, March 12, 2020 7:16 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1]tests/TestSuite_vhost_pmd_xstats: fix lost case > result when teardown fail >=20 > *. fix lost case result when teardown fail >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_vhost_pmd_xstats.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_vhost_pmd_xstats.py > b/tests/TestSuite_vhost_pmd_xstats.py > index 0ebbe1c..e9f79ed 100755 > --- a/tests/TestSuite_vhost_pmd_xstats.py > +++ b/tests/TestSuite_vhost_pmd_xstats.py > @@ -229,7 +229,8 @@ class TestVhostPmdXstats(TestCase): > """ > Run after each test case. > """ > - self.vm._stop_vm() > + if hasattr(self, "vm"): > + self.vm._stop_vm() > self.dut.kill_all() > time.sleep(2) >=20 > -- > 1.8.3.1