From: Pallantla Poornima Date: Tue, 13 Nov 2018 14:00:15 +0000 (+0000) Subject: test/kni: fix module miss fallback X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5835b7d3758b99e84ef362c521f193dd6d3a5c46;p=dpdk.git test/kni: fix module miss fallback 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 Acked-by: Reshma Pattan --- diff --git a/test/test/test_kni.c b/test/test/test_kni.c index f3c19b5a04..c92c09054f 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;