From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id A079791; Tue, 13 Nov 2018 15:00:43 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2018 06:00:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,499,1534834800"; d="scan'208";a="88943072" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga007.jf.intel.com with ESMTP; 13 Nov 2018 06:00:41 -0800 Received: from wgcvswdev001.ir.intel.com (wgcvswdev001.ir.intel.com [10.102.246.100]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id wADE0eL8008472; Tue, 13 Nov 2018 14:00:40 GMT Received: from wgcvswdev001.ir.intel.com (localhost [127.0.0.1]) by wgcvswdev001.ir.intel.com with ESMTP id wADE0G9V030967; Tue, 13 Nov 2018 14:00:16 GMT Received: (from agalyabx@localhost) by wgcvswdev001.ir.intel.com with œ id wADE0GcN030961; Tue, 13 Nov 2018 14:00:16 GMT From: Pallantla Poornima To: dev@dpdk.org Cc: reshma.pattan@intel.com, ferruh.yigit@intel.com, Pallantla Poornima , stable@dpdk.org Date: Tue, 13 Nov 2018 14:00:15 +0000 Message-Id: <1542117615-30834-1-git-send-email-pallantlax.poornima@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: References: Subject: [dpdk-stable] [PATCH] test: fix to skip kni autotest X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2018 14:00:44 -0000 Kni_autotest should be skipped if rte_kni.ko module is not loaded. Hence changed return as TEST_SKIPPED. Fixes: ee1caebc4d ("test/kni: check module dependency") Cc: stable@dpdk.org Signed-off-by: Pallantla Poornima --- test/test/test_kni.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test/test_kni.c b/test/test/test_kni.c index f3c19b5a0..c92c09054 100644 --- a/test/test/test_kni.c +++ b/test/test/test_kni.c @@ -549,7 +549,7 @@ test_kni(void) if (!dir) { if (errno == ENOENT) { printf("Cannot run UT due to missing rte_kni module\n"); - return -1; + return TEST_SKIPPED; } printf("opendir: %s", strerror(errno)); return -1; -- 2.13.6