test: fix to skip kni autotest
Checks
Commit Message
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>
---
test/test/test_kni.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
> -----Original Message-----
> From: Poornima, PallantlaX
> Sent: Tuesday, November 13, 2018 2:00 PM
> To: dev@dpdk.org
> Cc: Pattan, Reshma <reshma.pattan@intel.com>; Yigit, Ferruh
> <ferruh.yigit@intel.com>; Poornima, PallantlaX
> <pallantlax.poornima@intel.com>; stable@dpdk.org
> Subject: [PATCH] test: fix to skip kni autotest
>
> 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.cm>
13/11/2018 17:08, Pattan, Reshma:
> From: Poornima, PallantlaX
> >
> > 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.cm>
Applied, thanks
@@ -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;