From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 7C171A04FF;
	Tue, 24 May 2022 16:26:24 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 6465640140;
	Tue, 24 May 2022 16:26:24 +0200 (CEST)
Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com
 [67.231.148.174])
 by mails.dpdk.org (Postfix) with ESMTP id 9F6F8400D6
 for <dev@dpdk.org>; Tue, 24 May 2022 16:26:23 +0200 (CEST)
Received: from pps.filterd (m0045849.ppops.net [127.0.0.1])
 by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24O9ACDB006308;
 Tue, 24 May 2022 07:26:21 -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-transfer-encoding :
 content-type; s=pfpt0220; bh=CzrHrw3BUYfNdpqWwQ8+y5Wr5Nl+toCpTz3LY14G1aU=;
 b=S3ubWKZImPYuDpz86Bc1Bp/21HQprG1XqAqtuEHfys1j0L/PiE+3jQazXQQUH3/GEEgE
 4aXQOCCxRoGVSPgS2XTIh9pc5ZtXoiOHvumYsjBzTDXAlzU6Yd9p3svT9OZM7z+NqU+2
 +DNR6i7WKOMRbfhgC2uEHCA4Ob3e14+61YSDx/nGH2W7rSDESRgvNZDVkZGLyUGNJq01
 9MLOSdy2QYS09DlalYdIx4iaGpA3IgjVWDm3lA/lVhB0GlxHgRu078PZYib1/H0I8TAw
 YLYJfqxCcSKtRkkLMzpOLxMX8UudUUVu7Ogh3Ol7NJYmYK9JO8o+P4yxJsiDiw5m+DhF Ug== 
Received: from dc5-exch02.marvell.com ([199.233.59.182])
 by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3g8vg493y7-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);
 Tue, 24 May 2022 07:26:21 -0700
Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com
 (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;
 Tue, 24 May 2022 07:26:20 -0700
Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com
 (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend
 Transport; Tue, 24 May 2022 07:26:17 -0700
Received: from HY-LT1002.marvell.com (unknown [10.193.65.132])
 by maili.marvell.com (Postfix) with ESMTP id DE67B3F70EC;
 Tue, 24 May 2022 07:26:16 -0700 (PDT)
From: Anoob Joseph <anoobj@marvell.com>
To: Thomas Monjalon <thomas@monjalon.net>, David Marchand
 <david.marchand@redhat.com>, Ferruh Yigit <ferruh.yigit@xilinx.com>
CC: Anoob Joseph <anoobj@marvell.com>, <dev@dpdk.org>, Akhil Goyal
 <gakhil@marvell.com>, Ciara Power <ciara.power@intel.com>, Jerin Jacob
 <jerinj@marvell.com>
Subject: [PATCH] app/test: update skipped count when setup returns skipped
Date: Tue, 24 May 2022 19:46:11 +0530
Message-ID: <1653401771-120-1-git-send-email-anoobj@marvell.com>
X-Mailer: git-send-email 2.7.4
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain
X-Proofpoint-ORIG-GUID: NlTMO8QnhLj8qe84HBn2qvzPPK15FcFw
X-Proofpoint-GUID: NlTMO8QnhLj8qe84HBn2qvzPPK15FcFw
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.486,FMLib:17.11.64.514
 definitions=2022-05-24_07,2022-05-23_01,2022-02-23_01
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

If the setup function returns TEST_SKIPPED, the logs would say the test
case is skipped while the summary count would consider it under failed
cases. Address this by counting such test cases under 'skipped'.

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
---
 app/test/test.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/test/test.c b/app/test/test.c
index 5194131..f4d2854 100644
--- a/app/test/test.c
+++ b/app/test/test.c
@@ -358,6 +358,8 @@ unit_test_suite_runner(struct unit_test_suite *suite)
 				suite->failed++;
 		} else if (test_success == -ENOTSUP) {
 			suite->unsupported++;
+		} else if (test_success == TEST_SKIPPED) {
+			suite->skipped++;
 		} else {
 			suite->failed++;
 		}
-- 
2.7.4