test/kni: fix module miss fallback
authorPallantla Poornima <pallantlax.poornima@intel.com>
Tue, 13 Nov 2018 14:00:15 +0000 (14:00 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 14 Nov 2018 03:54:25 +0000 (04:54 +0100)
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 <pallantlax.poornima@intel.com>
Acked-by: Reshma Pattan <reshma.pattan@intel.com>
test/test/test_kni.c

index f3c19b5..c92c090 100644 (file)
@@ -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;