public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: Thomas Monjalon <thomas@monjalon.net>, Luca Boccassi <bluca@debian.org>
Subject: [PATCH] test/tap: skip test if tap vdev not available
Date: Tue, 17 Mar 2026 20:38:56 -0700	[thread overview]
Message-ID: <20260317203856.3a4b208e@stephen-xps.local> (raw)


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

Signed-off-by: Stephen Hemminger <stephen@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


             reply	other threads:[~2026-03-18  3:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-18  3:38 Stephen Hemminger [this message]
2026-03-18  9:07 ` [PATCH] test/tap: skip test if tap vdev not available David Marchand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260317203856.3a4b208e@stephen-xps.local \
    --to=stephen@networkplumber.org \
    --cc=bluca@debian.org \
    --cc=dev@dpdk.org \
    --cc=thomas@monjalon.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox