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 50253A034D; Mon, 17 Aug 2020 05:05:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1E0271C114; Mon, 17 Aug 2020 05:05:10 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 7BE5C1C0BC for ; Mon, 17 Aug 2020 05:05:08 +0200 (CEST) IronPort-SDR: ngks7QhY80OSwjIKTchu0rWbygr96z/iTmrVo4tk6f8sW8rG8Dbg0EanUqZ3avZ5A8unHqHslQ 0hKNIAuHFYhA== X-IronPort-AV: E=McAfee;i="6000,8403,9715"; a="154603714" X-IronPort-AV: E=Sophos;i="5.76,322,1592895600"; d="scan'208";a="154603714" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2020 20:05:06 -0700 IronPort-SDR: oh12z9Xh0TE4rp2qKy2DfTVgu2vtLC7VZ6NswI0vzR2CfT+YICav4Y8Rf1y9y0smTyGy21Bi6y vwcL+rEedwTA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,322,1592895600"; d="scan'208";a="328483569" Received: from fmsmsx602-2.cps.intel.com (HELO fmsmsx602.amr.corp.intel.com) ([10.18.84.212]) by fmsmga002.fm.intel.com with ESMTP; 16 Aug 2020 20:05:06 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sun, 16 Aug 2020 20:05:05 -0700 Received: from fmsmsx108.amr.corp.intel.com (10.18.124.206) by fmsmsx602.amr.corp.intel.com (10.18.126.82) 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, 16 Aug 2020 20:05:05 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 16 Aug 2020 20:05:05 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.103) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Sun, 16 Aug 2020 20:05:05 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FCiXEv87skNcTbuuzf8JoplJDCGv+8KzCXZex9iMlogPCThJwNBxdZ8I6FTr6LbfBuuX255j2fmHZ0uz5XVP+XPu1dJPW/1yeKhQ56jbyraw74foN93DFLM/lQvZ6ZBsvWQSvLXerQXPpok9myuLh0Ff42ROlq0RIlXFQkBoMSJKw6z0+aAOl2it+rvOgXCA8b7JAaS1WzOWQcIAr17GSNJouKqcO9HbNN4+akSSxmCDdxVkZrXaTW5Xeex02x7CQBnkkkw/8As++mEUJF2+WB8wzVqFce+R2JFBPj271g+DsyTy6emGZ50hn+RI4GwAxmmkbqHJT29yzc6TQUNQ+g== 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=qvwc3ss2EyFWLqoKdBSBI437M4K5HMuKzIfbXFBCl8E=; b=DOd+qjwFWfTqpbHoBIb+wxUuzG4pTLWTct/yOUgqiI8FbTBioRSi/ie/3RQh9Ept2kTM3aJfRIhY7fEl+piBuW/gCEL6vUuYRjXuliv1W8vKyZcwl6e4ZM02h7Z6T5F1abANHnGvRl/RDtNUR4lX0uOL6yzjox3dxBA5el2Vsjr93K5PbqVfRaNoU+SpeoPoy20PZdJU0mmP+ColhT2MQ2d527boiNw83PnaWAVhmIL3nXzpwrh/BcROOyE28Zo/V+fP72PTVSQKFBtjT3R1JC/HKPF+APXBxLcOnTjuwQdnyiVZsxNm8lbXw2kCIpOMPVF+OBporXAO5gCbc0RknQ== 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=qvwc3ss2EyFWLqoKdBSBI437M4K5HMuKzIfbXFBCl8E=; b=L0XoKANp2+8yFWI0578thWv6ucqbmLuCnhFSDDmnNwRz/na2sK+Sf6fDaOh00KmKuWMhRbM9LJ4YrUom4Jp6gsU9gEhMk8qtquQLuC/+SwHD/wLg+METMWHnQ0sFGGiE5LdNVc2y1oQcBSlbU4qe5AL9NdFViopQT9d5w5G9SfI= Received: from MWHPR1101MB2254.namprd11.prod.outlook.com (2603:10b6:301:58::11) by MWHPR11MB1919.namprd11.prod.outlook.com (2603:10b6:300:106::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.22; Mon, 17 Aug 2020 03:05:04 +0000 Received: from MWHPR1101MB2254.namprd11.prod.outlook.com ([fe80::206d:f3f3:b571:41ee]) by MWHPR1101MB2254.namprd11.prod.outlook.com ([fe80::206d:f3f3:b571:41ee%11]) with mapi id 15.20.3283.027; Mon, 17 Aug 2020 03:05:04 +0000 From: "Xiao, QimaiX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1]framework/test_case: fix tear down fail will lost suite results Thread-Index: AQHWdDxVO7o8dr5luUuNe8oSdslAI6k7nbRg Date: Mon, 17 Aug 2020 03:05:04 +0000 Message-ID: References: <20200817015129.69113-1-qimaix.xiao@intel.com> In-Reply-To: <20200817015129.69113-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: 17151107-1080-49ed-2adf-08d8425a56b8 x-ms-traffictypediagnostic: MWHPR11MB1919: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:50; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: IQaGEOHIh5tSkqciYZ7MUCbsiiWG2GXyvECP2mBLTP1/SH3R8bWcjZ39ege1pT1eiQE/bCqlbhAiTUwCA8sx9v9rTFhrNNSQ238Nw4C8Fi7pgN46TDc0PMokGwANPOu7EJ/BWW4mp225AAsVNEQLeb+77laKBFh9JiAKqqHTAm1o1Youaw/PLvwtspd9R2Rq/+dqCbVKA+XUboTyR3jYO5/Jc9s2bEBBbx4Hagy08OpY4ALNnrZfsnlIcnT0zRMWwA5cmyopjUeB5kC04YqQrEM7Dsx+V6GGmkp6nMFP+ufg2YCw0F+oFCbbXzrd44mdnPwYZ+S8MW5h6TGKgEx+9g== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1101MB2254.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(346002)(136003)(376002)(366004)(396003)(478600001)(76116006)(66446008)(66946007)(66476007)(66556008)(64756008)(33656002)(26005)(86362001)(71200400001)(7696005)(5660300002)(52536014)(9686003)(8676002)(6506007)(53546011)(316002)(55016002)(6916009)(2906002)(83380400001)(8936002)(186003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: 5h4wfG4ndBMgSdUg7BPFKRWlK/MWCboOgKY/VEmZ1FBWQsWpE3a+FE1lGst70nnAq76Dm8/6tNLHQsSe3q9T1QRuGm6xwl9SWkgUMxaZxNnwaYxhmYL1K6NeQ+Jjd28+RQkpitZpKfdSwpcV3DearGZ7cIGYcnQmJNyvA1k/IFrZSOvb5t8qhOf/yHtRHSHNWgHyeN0uN5RZAYjMqeMOweI1PZEHi3YRaM3j/zMcjgVZwsYblIijsbNMX2m50gTGZwiuVuXq64++mXL8LFbFtfpmIMY0zduruVBiZ6XpvD5U5XoDpPJBwZAXAOAY2NAKzqKtFebI5rz1VWxtL2HcQ+gHcgFLmTG5enYzezif5NQHDXmCuScs0uJmcIWUMMuugDVTpBZZq2cmGFQhwVpJCAqsIhyIa/F0AkvG0PvBMOgDWkgTjPmiUMwNmavg1ue+46WjEGrulK27aRH1Aoh1WNTmNh3IeBwMA5Sf8AdPjyAwre/pFTJ1Thb6Y7wHytu2nw0V0ZFUVWn0XKp0a9qtrpWzWumUO58YPuCCmZkVunR3vdKMFS4tYvmz31RwjA9+gb1rw3AFuTrP6OKXQW3ZM+daqxqVHIb1ew8e5K7YhFUxZ26JbGlpFqTuD9SjqzKA7om1iXH7s5TE69vhvMeR8g== 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: MWHPR1101MB2254.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 17151107-1080-49ed-2adf-08d8425a56b8 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Aug 2020 03:05:04.1755 (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: 3yLihlKBuW3BdWeXbqMJNDe+ndPEcwC5y+cTlEkYLkt/rdYf89uaFUB7omkApSbSZxSDDcttHalSASRaoWfnOA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1919 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH V1]framework/test_case: fix tear down fail will lost suite results 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: Monday, August 17, 2020 9:51 AM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts][PATCH V1]framework/test_case: fix tear down fail will lost > suite results >=20 > *. this patch fix if got exception in tear down method of testsuite will = lost > result scilently >=20 > Signed-off-by: Xiao Qimai > --- > framework/test_case.py | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) >=20 > diff --git a/framework/test_case.py b/framework/test_case.py index > 110dafb..300b6ac 100644 > --- a/framework/test_case.py > +++ b/framework/test_case.py > @@ -350,7 +350,7 @@ class TestCase(object): > 'update_expected' in self.get_suite_cfg() and \ > self.get_suite_cfg()['update_expected'] =3D=3D True: > self._suite_conf.update_case_config(SUITE_SECTION_NAME) > - self.tear_down() > + self.execute_tear_down() > return case_result >=20 > def execute_test_cases(self): > @@ -440,6 +440,16 @@ class TestCase(object): > # destroy all vfs > dutobj.destroy_all_sriov_vfs() >=20 > + def execute_tear_down(self): > + """ > + execute suite tear_down function > + """ > + try: > + self.tear_down() > + except Exception: > + self.logger.error('tear_down failed:\n' + traceback.format_e= xc()) > + self.logger.warning("tear down %s failed, might iterfere > + next case's result!" % self.running_case) > + > def enable_history(self, history): > """ > Enable history for all CRB's default session > -- > 2.25.1