[dpdk-dev] [PATCH] test: fix to skip kni autotest
Pallantla Poornima
pallantlax.poornima at intel.com
Tue Nov 13 15:00:15 CET 2018
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 at dpdk.org
Signed-off-by: Pallantla Poornima <pallantlax.poornima at intel.com>
---
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
More information about the dev
mailing list