All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: U-Boot Mailing List <u-boot@lists.denx.de>
Cc: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>,
	Love Kumar <love.kumar@amd.com>
Subject: [PATCH 4/4] test: Make net tests depend on CONFIG_CMD_NET
Date: Sat, 25 Jan 2025 14:31:39 -0700	[thread overview]
Message-ID: <20250125213150.1608395-5-sjg@chromium.org> (raw)
In-Reply-To: <20250125213150.1608395-1-sjg@chromium.org>

This fails on samus_tpl as there is no 'net' command.

   => net list
   Unknown command 'net' - try 'help' !

Fix it by adding a condition for the test.

Add a blank line to keep pylint happy.

Signed-off-by: Simon Glass <sjg@chromium.org>
---
See here:

http://sjg.u-boot.org/u-boot/u-boot/-/jobs/19821

 test/py/tests/test_net.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/py/tests/test_net.py b/test/py/tests/test_net.py
index bdb7e6f372d..30c6e41334c 100644
--- a/test/py/tests/test_net.py
+++ b/test/py/tests/test_net.py
@@ -91,6 +91,8 @@ env__router_on_net = True
 net_set_up = False
 net6_set_up = False
 
+
+@pytest.mark.buildconfigspec('cmd_net')
 def test_net_pre_commands(ubpy):
     """Execute any commands required to enable network hardware.
 
-- 
2.43.0


  parent reply	other threads:[~2025-01-25 21:32 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-25 21:31 [PATCH 0/4] test: A few quality-of-life improvements Simon Glass
2025-01-25 21:31 ` Simon Glass
2025-01-25 21:31 ` [PATCH 1/4] test/py: Shorten u_boot_console Simon Glass
2025-01-25 21:50   ` Tom Rini
2025-01-25 21:50     ` Tom Rini
2025-01-25 22:42     ` Simon Glass
2025-01-25 22:42       ` Simon Glass
2025-01-25 22:55       ` Tom Rini
2025-01-25 22:55         ` Tom Rini
2025-01-25 22:58         ` Simon Glass
2025-01-25 22:58           ` Simon Glass
2025-02-03  6:04           ` Love Kumar via Linux-erofs
2025-02-03  6:04             ` Love Kumar
2025-02-09 14:29             ` Simon Glass
2025-02-09 14:29               ` Simon Glass
2025-01-25 21:31 ` [PATCH 2/4] test: Drop u_boot_ prefix on test files Simon Glass
2025-01-25 21:46   ` Tom Rini
2025-01-25 22:41     ` Simon Glass
2025-01-25 22:57       ` Tom Rini
2025-01-25 22:59         ` Simon Glass
2025-01-25 21:31 ` [PATCH 3/4] test/py: Show info about module-loading Simon Glass
2025-01-25 21:43   ` Tom Rini
2025-01-25 23:00     ` Simon Glass
2025-01-25 23:02       ` Tom Rini
2025-01-25 23:39         ` Simon Glass
2025-01-25 23:53           ` Tom Rini
2025-01-25 21:31 ` Simon Glass [this message]
2025-01-25 21:44   ` [PATCH 4/4] test: Make net tests depend on CONFIG_CMD_NET Tom Rini
2025-01-25 22:47     ` Simon Glass
2025-01-25 22:50       ` Tom Rini
2025-01-25 22:56         ` Simon Glass
2025-01-25 23:00           ` Tom Rini
2025-02-15 13:02             ` Simon Glass
2025-02-15 14:37               ` Tom Rini
2025-02-15 17:21                 ` Simon Glass

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=20250125213150.1608395-5-sjg@chromium.org \
    --to=sjg@chromium.org \
    --cc=love.kumar@amd.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.