summaryrefslogtreecommitdiff
path: root/test/cmd/test_echo.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-15 18:11:13 +1300
committerSimon Glass <sjg@chromium.org>2021-03-27 15:04:31 +1300
commitb6da55976439c63e4f3037a65b0dde1656e7af6a (patch)
tree6b125c5eefa8415b7a7ee7c47ae4fee8e9f15696 /test/cmd/test_echo.c
parente2734d647e9c86f46083b29224fc7b41a46e1858 (diff)
test: Silenece the echo and print tests
These tests current produce unwanted output on sandbox. Use the correct functions to controller console output, to avoid this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/cmd/test_echo.c')
-rw-r--r--test/cmd/test_echo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cmd/test_echo.c b/test/cmd/test_echo.c
index aa5cebc4e78..9d60d7d1a0b 100644
--- a/test/cmd/test_echo.c
+++ b/test/cmd/test_echo.c
@@ -44,9 +44,10 @@ static int lib_test_hush_echo(struct unit_test_state *uts)
int i;
for (i = 0; i < ARRAY_SIZE(echo_data); ++i) {
+ ut_silence_console(uts);
console_record_reset_enable();
ut_assertok(run_command(echo_data[i].cmd, 0));
- gd->flags &= ~GD_FLG_RECORD;
+ ut_unsilence_console(uts);
console_record_readline(uts->actual_str,
sizeof(uts->actual_str));
ut_asserteq_str(echo_data[i].expected, uts->actual_str);