test: Make net tests depend on CONFIG_CMD_NET
authorSimon Glass <sjg@chromium.org>
Sun, 9 Feb 2025 16:07:19 +0000 (09:07 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 15 Mar 2025 11:47:05 +0000 (11:47 +0000)
commit13e8d14442a85a8556211a9950a5b6f80b447901
tree14ea0ca0ef443959df1ac5afa7b5114e6910bf77
parent0043428777f8b4dabd8124aa60f53fc7a14c9369
test: Make net tests depend on CONFIG_CMD_NET

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>
test/py/tests/test_net.py