From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 34CB0A0A02; Tue, 18 May 2021 16:20:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9F98E4068E; Tue, 18 May 2021 16:20:08 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 196FC40041 for ; Tue, 18 May 2021 16:20:04 +0200 (CEST) IronPort-SDR: W2mcebDpIlM8wop40rsepn6aQUvRPZ4SVq2BKM6SS804dYiyRqGYMlg34i8V1DQpBUgHldrFcb jrIPniG55ceQ== X-IronPort-AV: E=McAfee;i="6200,9189,9988"; a="187847880" X-IronPort-AV: E=Sophos;i="5.82,310,1613462400"; d="scan'208";a="187847880" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2021 07:20:03 -0700 IronPort-SDR: pRRvk8SFNPuGO7LjBStUEiMHRgn92ZaCZLxRlFd+JFRSQ7wSOANC15tJXKc9HzEKyg6DnP565u d9X/PxVbCmXg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,310,1613462400"; d="scan'208";a="438856473" Received: from silpixa00400355.ir.intel.com (HELO silpixa00400355.ger.corp.intel.com) ([10.237.223.148]) by fmsmga008.fm.intel.com with ESMTP; 18 May 2021 07:20:01 -0700 From: Ciara Power To: dev@dpdk.org Cc: roy.fan.zhang@intel.com, declan.doherty@intel.com, aconole@redhat.com, gakhil@marvell.com, Ciara Power Date: Tue, 18 May 2021 14:19:55 +0000 Message-Id: <20210518141955.960508-1-ciara.power@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] test/crypto: fix test status when PMD isn't loaded X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" The return value for a test when the required PMD is not loaded should be TEST_SKIPPED, rather than TEST_FAILED. Fixes: 8bfdd8a7f0f1 ("test/crypto: refactor to use sub test suites") Signed-off-by: Ciara Power --- app/test/test_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 736952a9e6..c68684b80b 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -14504,7 +14504,7 @@ run_cryptodev_testsuite(const char *pmd_name) if (gbl_driver_id == -1) { RTE_LOG(ERR, USER1, "%s PMD must be loaded.\n", pmd_name); - return TEST_FAILED; + return TEST_SKIPPED; } ts.unit_test_suites = malloc(sizeof(struct unit_test_suite *) * -- 2.25.1