From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 67A63379B for ; Wed, 8 Mar 2017 08:43:27 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Mar 2017 23:43:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,262,1486454400"; d="scan'208";a="941890851" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 07 Mar 2017 23:43:26 -0800 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 7 Mar 2017 23:43:26 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 7 Mar 2017 23:43:25 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.20]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.177]) with mapi id 14.03.0248.002; Wed, 8 Mar 2017 15:43:23 +0800 From: "Liu, Yong" To: "Chen, Zhaoyan" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH v3] Add Cryptodev Unit Tests Cases Thread-Index: AQHSl8k8Nl9l3J8TF0W70ky5qGlS9aGKhOeA//+BlgCAAIaiUA== Date: Wed, 8 Mar 2017 07:43:22 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62D758E6@SHSMSX103.ccr.corp.intel.com> References: <20170308050153.16021-1-zhaoyan.chen@intel.com> <58BFAD01.3080409@intel.com> <9DEEADBC57E43F4DA73B571777FECECA3C82D2F6@shsmsx102.ccr.corp.intel.com> In-Reply-To: <9DEEADBC57E43F4DA73B571777FECECA3C82D2F6@shsmsx102.ccr.corp.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 v3] Add Cryptodev Unit Tests Cases 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: , X-List-Received-Date: Wed, 08 Mar 2017 07:43:27 -0000 Zhaoyan, I guess the reason why Kill this applcation is for next around. Am I right? We used to handle this kind of action in tear_down function. For exception handler, there's no need to dump exception for the only one r= eason is timeout. In general, let framework handle those kind exceptions and keep suite clean= .=20 Thanks, Marvin > -----Original Message----- > From: Chen, Zhaoyan > Sent: Wednesday, March 08, 2017 3:32 PM > To: Liu, Yong ; dts@dpdk.org > Subject: RE: [dts] [PATCH v3] Add Cryptodev Unit Tests Cases >=20 > I do not recover the application, just error handling. > Since QAT HW unstable sometime. >=20 > Since just function test, (not stable test), > So, for each test case will launch a separated test application. >=20 > But, there is another idea that run different unit tests by > a defined scenario. Actually, there is 1 DPDK-AE bug find by this mode. >=20 > Anyway, for the unit test, I just want to de-couple the completed factors= . > So each test app launching for each unit test suite. >=20 > Next step is that design some combined tests by requirements. >=20 > Thanks. >=20 > Regards, > Zhaoyan Chen >=20 > > -----Original Message----- > > From: Liu, Yong > > Sent: Wednesday, March 8, 2017 3:05 PM > > To: Chen, Zhaoyan ; dts@dpdk.org > > Subject: Re: [dts] [PATCH v3] Add Cryptodev Unit Tests Cases > > > > Zhaoyan, > > Why try to recover test application when there's no response? Is that > > application not stable after run crypto unit test? > > If there's one need to do that, please do it in tear_down function. > > > > Thanks, > > Marvin > > > > On 03/08/2017 01:01 PM, Chen, Zhaoyan wrote: > > > + try: > > > + out =3D self.dut.send_expect(testsuite, "RTE>>", timeout= ) > > > + self.dut.send_expect("quit", "# ", 30) > > > + except Exception, ex: > > > + print ex > > > + print "run cryptodev_unit_tests process coredump" > > > + self.dut.alt_session.send_expect("killall test", "# ", 3= 0) > > > + dmesg =3D self.dut.alt_session.send_expect("dmesg", "# "= , > 30) > > > + print dmesg > > > + print out