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 EE015A3295 for ; Wed, 23 Oct 2019 11:52:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E2F331C00D; Wed, 23 Oct 2019 11:52:16 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 1A2071BFDF for ; Wed, 23 Oct 2019 11:52:15 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2019 02:52:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,220,1569308400"; d="scan'208";a="188201188" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga007.jf.intel.com with ESMTP; 23 Oct 2019 02:52:14 -0700 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 23 Oct 2019 02:52:14 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 23 Oct 2019 02:52:14 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.96]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.119]) with mapi id 14.03.0439.000; Wed, 23 Oct 2019 17:52:12 +0800 From: "Tu, Lijuan" To: "pvukkisala@marvell.com" , "dts@dpdk.org" CC: "avijay@marvell.com" , "fmasood@marvell.com" Thread-Topic: [dts] [PATCH] unit_tests_pmd_perf: Fix throwing error and exiting app on failure Thread-Index: AQHVhrh6Mscz/zoYMkmo1Q22ZCFpGKdoAZ/Q Date: Wed, 23 Oct 2019 09:52:12 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB45A67@SHSMSX101.ccr.corp.intel.com> References: <1571515466-4190-1-git-send-email-pvukkisala@marvell.com> In-Reply-To: <1571515466-4190-1-git-send-email-pvukkisala@marvell.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-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjkyMzc1OTItNmNjZC00ZDMyLWE0OTUtNGUyYTAwOWM1NGZmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiVDQ0eXNWZ1o2aUdcL2h3TFF3R1FDRTRtOEd4dElBcnVUYUc4bkwrR2VTVjlPU0FQQ2ZhY2IrZ1ZQTzhGWm44SWUifQ== 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] unit_tests_pmd_perf: Fix throwing error and exiting app on failure 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 > pvukkisala@marvell.com > Sent: Sunday, October 20, 2019 4:04 AM > To: dts@dpdk.org > Cc: avijay@marvell.com; fmasood@marvell.com; Phanendra Vukkisala > > Subject: [dts] [PATCH] unit_tests_pmd_perf: Fix throwing error and exitin= g > app on failure >=20 > From: Phanendra Vukkisala >=20 > Signed-off-by: Phanendra Vukkisala > --- > tests/TestSuite_unit_tests_pmd_perf.py | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_unit_tests_pmd_perf.py > b/tests/TestSuite_unit_tests_pmd_perf.py > index ea221df..c9a18dc 100644 > --- a/tests/TestSuite_unit_tests_pmd_perf.py > +++ b/tests/TestSuite_unit_tests_pmd_perf.py > @@ -113,6 +113,7 @@ class TestUnitTestsPmdPerf(TestCase): > match_regex =3D "Result: (\d+) cycles per packet" > m =3D re.compile(r"%s" % match_regex, re.S) > result =3D m.search(out) > + self.verify(result, "Failed to get result") > self.logger.info("Mode %s latency is %s" % (mode, result.gro= up(1))) >=20 > self.dut.send_expect("quit", "# ") @@ -143,6 +144,7 @@ class > TestUnitTestsPmdPerf(TestCase): > match_regex =3D "Result: (\d+) cycles per packet" > m =3D re.compile(r"%s" % match_regex, re.S) > result =3D m.search(out) > + self.verify(result, "Failed to get result") > table_row.append(result.group(1)) >=20 > self.dut.send_expect("quit", "# ") @@ -154,7 +156,7 @@ class > TestUnitTestsPmdPerf(TestCase): > """ > Run after each test case. > """ > - pass > + self.dut.kill_all() >=20 > def tear_down_all(self): > """ > -- > 1.7.9.5