[PATCH] test/tap: skip test if tap vdev not available
Stephen Hemminger
stephen at networkplumber.org
Wed Mar 18 04:38:56 CET 2026
If tap can not be created, mark test as SKIPPED not FAILED.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
app/test/test_pmd_tap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/test/test_pmd_tap.c b/app/test/test_pmd_tap.c
index 482c70b3f6..dabd7d3506 100644
--- a/app/test/test_pmd_tap.c
+++ b/app/test/test_pmd_tap.c
@@ -719,7 +719,7 @@ test_tap_setup(void)
rte_strerror(-ret));
rte_mempool_free(mp);
mp = NULL;
- return -1;
+ return TEST_SKIPPED;
}
/* Create second TAP device */
--
2.53.0
More information about the dev
mailing list