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 73A17A04DD; Mon, 21 Sep 2020 23:44:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CD7391DA56; Mon, 21 Sep 2020 23:44:30 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 1024E1D8DD for ; Mon, 21 Sep 2020 23:44:28 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200921214428euoutp02fb19b3de71ed30ed92acf33a44588319~26prVah4H2536125361euoutp02O for ; Mon, 21 Sep 2020 21:44:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200921214428euoutp02fb19b3de71ed30ed92acf33a44588319~26prVah4H2536125361euoutp02O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1600724668; bh=vfeYoiG0jgZApBRuGB3v7MkaBuCK0XFA/Xy5b+Vu0vQ=; h=From:To:Cc:Subject:Date:References:From; b=aY812HywZ0F7vkuppbQ/5GbDtbAlPk8HpD+Z9HwTrJMD9/Errv5ILUECFCGokX8Nm ZWKncLYcGRXKbBkA4Sgx8GzTLBCdqZCTqfrUI2NJ50pKC7aTIgVHnTHd4k9sLiF7GV 3f2VH0CI/RNMonx/tZ4llxeut1PlXxHp0gNBvKok= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200921214427eucas1p257e03f59c36d0ae926de8566454e0854~26pqR-EZY3219632196eucas1p2v; Mon, 21 Sep 2020 21:44:27 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 09.3F.06318.BBE196F5; Mon, 21 Sep 2020 22:44:27 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200921214426eucas1p1780728815bcc17e96102cb1f43df0195~26pp3BgrR2057520575eucas1p1d; Mon, 21 Sep 2020 21:44:26 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200921214426eusmtrp2292923a2f23616feae31197993d98518~26pp2c1gj2051820518eusmtrp2x; Mon, 21 Sep 2020 21:44:26 +0000 (GMT) X-AuditID: cbfec7f5-371ff700000018ae-be-5f691ebb49aa Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 49.17.06314.ABE196F5; Mon, 21 Sep 2020 22:44:26 +0100 (BST) Received: from Padamandas.fritz.box (unknown [106.210.88.70]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200921214426eusmtip20f0bb3f484b22ee35b7900e96e250878~26ppNtOX13136931369eusmtip2Q; Mon, 21 Sep 2020 21:44:25 +0000 (GMT) From: Lukasz Wojciechowski To: Nipun Gupta , Hemant Agrawal , Shreyansh Jain Cc: dev@dpdk.org, l.wojciechow@partner.samsung.com, stable@dpdk.org Date: Mon, 21 Sep 2020 23:44:19 +0200 Message-Id: <20200921214420.29171-1-l.wojciechow@partner.samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAIsWRmVeSWpSXmKPExsWy7djPc7q75TLjDS4eYbN492k7k8XKxxvZ LJ71rGO0OHf8NKPFv/cdbBb/Ov6wO7B5/FqwlNVj47sdTB4H3+1hCmCO4rJJSc3JLEst0rdL 4Mr481CyoI+z4v2bD4wNjBfZuxg5OSQETCQapn5n7mLk4hASWMEocannNyOE84VR4uS+ZawQ zmdGiZdvZjDDtPROfcAEkVjOKDGh5Qs7hPOJUW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NC9dLzk/dxMjMMi2Hfu5eQfj pY3BhxgFOBiVeHgPTM2IF2JNLCuuzD3EKMHBrCTC63T2dJwQb0piZVVqUX58UWlOavEhRlOg 5ROZpUST84ERkFcSb2hqaG5haWhubG5sZqEkztshcDBGSCA9sSQ1OzW1ILUIpo+Jg1OqgZHh wHbG64XSW3j+fteuVrrNFmn0jnFNz0NRjYznB18+UzSL+/jtlGb/pCuX66tWHGoRZklLDj7v +1frTkjNVsXlDw47xS900WW18323NzL1wC2v4Ngtjir1JbanCgVbWMQeF7NLzeVmS/vx87Z6 jf3dwqUhhQpvuyM/Lv+c725zPWrxkiChO0osxRmJhlrMRcWJAFndIk1IAgAA X-CMS-MailID: 20200921214426eucas1p1780728815bcc17e96102cb1f43df0195 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200921214426eucas1p1780728815bcc17e96102cb1f43df0195 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200921214426eucas1p1780728815bcc17e96102cb1f43df0195 References: Subject: [dpdk-dev] [PATCH v1 1/2] raw/skeleton: reset rawdev test statistics X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Statistics: passed, failed, unsupported and total are kept in global static variables. As global variables they are initiated with zeroes. However running test multiple times cumulates results from previous calls. This patch resets statistics with zeroes in testsuite_setup(). To reproduce issue fixed by this patch, run rawdev_autotest command in dpdk-test app multiple times. Fixes: 55ca1b0f2151 ("raw/skeleton: add test cases") Cc: shreyansh.jain@nxp.com Cc: stable@dpdk.org Signed-off-by: Lukasz Wojciechowski --- drivers/raw/skeleton/skeleton_rawdev_test.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/raw/skeleton/skeleton_rawdev_test.c b/drivers/raw/skeleton/skeleton_rawdev_test.c index bb4b6efe4..1405df080 100644 --- a/drivers/raw/skeleton/skeleton_rawdev_test.c +++ b/drivers/raw/skeleton/skeleton_rawdev_test.c @@ -42,6 +42,12 @@ static int testsuite_setup(void) { uint8_t count; + + total = 0; + passed = 0; + failed = 0; + unsupported = 0; + count = rte_rawdev_count(); if (!count) { SKELDEV_TEST_INFO("\tNo existing rawdev; " -- 2.17.1