[PATCH] test/cmd/wget.c: move net_test_wget() to the cmd test suite

Jerome Forissier jerome.forissier at linaro.org
Tue Nov 5 13:06:53 CET 2024


Since net_test_wget() is testing a command and is in test/cmd it
should be in the 'cmd' test suite, not 'lib'.

Reported-by: Simon Glass <sjg at chromium.org>
Signed-off-by: Jerome Forissier <jerome.forissier at linaro.org>
---
 test/cmd/wget.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/cmd/wget.c b/test/cmd/wget.c
index fe26fee54c9..9dde699db58 100644
--- a/test/cmd/wget.c
+++ b/test/cmd/wget.c
@@ -19,6 +19,7 @@
 #include <dm/test.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
+#include <test/cmd.h>
 #include <test/lib.h>
 #include <test/test.h>
 #include <test/ut.h>
@@ -225,4 +226,4 @@ static int net_test_wget(struct unit_test_state *uts)
 
 	return 0;
 }
-LIB_TEST(net_test_wget, UTF_CONSOLE);
+CMD_TEST(net_test_wget, UTF_CONSOLE);
-- 
2.40.1



More information about the U-Boot mailing list