From: Ahmad Fatoum <a.fatoum@barebox.org>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@barebox.org>
Subject: [PATCH 2/3] test: py: network: skip test if tftp command is missing
Date: Mon, 20 Oct 2025 20:28:37 +0200 [thread overview]
Message-ID: <20251020182841.590206-2-a.fatoum@barebox.org> (raw)
In-Reply-To: <20251020182841.590206-1-a.fatoum@barebox.org>
The test depends on the tftp command being available, so skip it if this
is not the case.
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
test/py/test_network.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/test/py/test_network.py b/test/py/test_network.py
index afaa259e2496..28efcc02e44d 100644
--- a/test/py/test_network.py
+++ b/test/py/test_network.py
@@ -5,6 +5,7 @@ import socket
import threading
import re
import warnings
+from .helper import skip_disabled
# Setting the port to zero causes bind to choose a random ephermal port
TFTP_TEST_PORT = 0
@@ -64,7 +65,9 @@ def tftp_conversation(barebox, barebox_interface, guestaddr):
barebox.run_check("ifdown eth0")
-def test_barebox_network(barebox, env):
+def test_barebox_network(barebox, barebox_config, env):
+ skip_disabled(barebox_config, "CONFIG_CMD_TFTP")
+
# on DUTs without network feature, this is expected to fail
# set xfail_strict=True to enforce specifying the network feature if available
if not 'network' in env.get_target_features():
--
2.47.3
next prev parent reply other threads:[~2025-10-20 18:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-20 18:28 [PATCH 1/3] test: py: dm: skip test if veritysetup command is disabled Ahmad Fatoum
2025-10-20 18:28 ` Ahmad Fatoum [this message]
2025-10-20 18:28 ` [PATCH 3/3] test: py: fix pycodestyle warnings Ahmad Fatoum
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=20251020182841.590206-2-a.fatoum@barebox.org \
--to=a.fatoum@barebox.org \
--cc=barebox@lists.infradead.org \
/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