Skip to contentSkip to conversation

test/tap: skip test if tap vdev not available

PATCH Applied Stephen Hemminger 2 participants 2 messages Mar 18

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/tap: skip test if tap vdev not available

If tap can not be created, mark test as SKIPPED not FAILED.

---
 app/test/test_pmd_tap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
app/test/test_pmd_tap.c +1 -1
index 482c70b3f6..dabd7d3506 100644
@@ -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 */
Signature · 1 line
2.53.0