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 5F835A31F3 for ; Sat, 19 Oct 2019 22:04:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 196BC1BF31; Sat, 19 Oct 2019 22:04:40 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 47C731BF30 for ; Sat, 19 Oct 2019 22:04:38 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9JK4YUk001913 for ; Sat, 19 Oct 2019 13:04:37 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=7uC7oEM6XoO+rsjzmtQH6CU/p4UAi2AhOmNuQWrdcak=; b=xC7VBWLr++L3Bigty5Mgz3isVt5j8AhyT6OxAcTbCRY/ai/pEviPJl9f1UK3PSUDOBpb NCWqXT7uvE81S+EOx0aPyw2HjIfEoazQ8vcWyPlSWlJwa3GeoZEPLQ72me7bU5DIkAnp wv11kzlYP0jzwr/CvFGaVvA5nsIWZsU1QuLH4+ZVF8ehfKCZjLRvdj4N7hEVP0t2kSjG IoXnbEQQ+PKsFmxNKdUXbm/z9EsLjoAq4MQg4NQ096+swyxjWZGR+k/TSQ1CgyUnV8yK M0JDvWCNg+wmmm9J3dV4yTpx7SEo48VGnFAez7MaEaPZt09/bVL7dz14IWfTsr6JjQaM Qg== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2vr20mgxqp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sat, 19 Oct 2019 13:04:37 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sat, 19 Oct 2019 13:04:35 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Sat, 19 Oct 2019 13:04:35 -0700 Received: from phanendra-system.marvell.com (unknown [10.28.11.20]) by maili.marvell.com (Postfix) with ESMTP id 023203F703F; Sat, 19 Oct 2019 13:04:33 -0700 (PDT) From: To: CC: , , Phanendra Vukkisala Date: Sun, 20 Oct 2019 01:34:26 +0530 Message-ID: <1571515466-4190-1-git-send-email-pvukkisala@marvell.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-19_04:2019-10-18,2019-10-19 signatures=0 Subject: [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" From: Phanendra Vukkisala Signed-off-by: Phanendra Vukkisala --- tests/TestSuite_unit_tests_pmd_perf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = "Result: (\d+) cycles per packet" m = re.compile(r"%s" % match_regex, re.S) result = m.search(out) + self.verify(result, "Failed to get result") self.logger.info("Mode %s latency is %s" % (mode, result.group(1))) self.dut.send_expect("quit", "# ") @@ -143,6 +144,7 @@ class TestUnitTestsPmdPerf(TestCase): match_regex = "Result: (\d+) cycles per packet" m = re.compile(r"%s" % match_regex, re.S) result = m.search(out) + self.verify(result, "Failed to get result") table_row.append(result.group(1)) self.dut.send_expect("quit", "# ") @@ -154,7 +156,7 @@ class TestUnitTestsPmdPerf(TestCase): """ Run after each test case. """ - pass + self.dut.kill_all() def tear_down_all(self): """ -- 1.7.9.5