Rather than exiting with FAILURE the test should exit
with SKIPPED status if it can't find a device to attach to.

Signed-off-by: Stephen Hemminger <[email protected]>
---
 app/test/test_pmd_perf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/test/test_pmd_perf.c b/app/test/test_pmd_perf.c
index 995b0a6f20..8eff0a1223 100644
--- a/app/test/test_pmd_perf.c
+++ b/app/test/test_pmd_perf.c
@@ -691,7 +691,7 @@ test_pmd_perf(void)
        if (nb_ports < NB_ETHPORTS_USED) {
                printf("At least %u port(s) used for perf. test\n",
                       NB_ETHPORTS_USED);
-               return -1;
+               return TEST_SKIPPED;
        }
 
        nb_lcores = rte_lcore_count();
-- 
2.53.0

Reply via email to