[PATCH 14/21] test: cmd: Use UTF_CONSOLE in tests

Simon Glass sjg at chromium.org
Sat Aug 10 22:51:58 CEST 2024


Set this flag rather than doing things manually in the test.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 test/cmd/pinmux.c | 3 ++-
 test/cmd/wget.c   | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/cmd/pinmux.c b/test/cmd/pinmux.c
index 0b4e001fa1e..7ee92690756 100644
--- a/test/cmd/pinmux.c
+++ b/test/cmd/pinmux.c
@@ -36,4 +36,5 @@ static int dm_test_cmd_pinmux_status_pinname(struct unit_test_state *uts)
 
 	return 0;
 }
-DM_TEST(dm_test_cmd_pinmux_status_pinname, UTF_SCAN_PDATA | UTF_SCAN_FDT);
+DM_TEST(dm_test_cmd_pinmux_status_pinname, UTF_SCAN_PDATA | UTF_SCAN_FDT |
+	UTF_CONSOLE);
diff --git a/test/cmd/wget.c b/test/cmd/wget.c
index dd67aa445b8..121a426afdb 100644
--- a/test/cmd/wget.c
+++ b/test/cmd/wget.c
@@ -201,4 +201,4 @@ static int net_test_wget(struct unit_test_state *uts)
 
 	return 0;
 }
-LIB_TEST(net_test_wget, 0);
+LIB_TEST(net_test_wget, UTF_CONSOLE);
-- 
2.34.1



More information about the U-Boot mailing list