test: cmd: Drop unnecessary console_record_reset_enable()
It is seldom necessary to call this function. Drop its use in the command tests. Add a few extra checks to the wget test so that resetting is not needed. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -45,10 +45,7 @@ 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));
|
||||
ut_unsilence_console(uts);
|
||||
console_record_readline(uts->actual_str,
|
||||
sizeof(uts->actual_str));
|
||||
ut_asserteq_str(echo_data[i].expected, uts->actual_str);
|
||||
@@ -56,4 +53,4 @@ static int lib_test_hush_echo(struct unit_test_state *uts)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
LIB_TEST(lib_test_hush_echo, 0);
|
||||
LIB_TEST(lib_test_hush_echo, UTF_CONSOLE);
|
||||
|
||||
Reference in New Issue
Block a user