Hi Rasmus,

On 2026-07-08T20:37:01, Rasmus Villemoes <[email protected]> wrote:
> test: add test of 'config' command
>
> Add some test cases for the 'config' command, including the ability to
> filter the output.
>
> Signed-off-by: Rasmus Villemoes <[email protected]>
>
> test/cmd/Makefile |  1 +
>  test/cmd/config.c | 28 ++++++++++++++++++++++++++++
>  2 files changed, 29 insertions(+)

Reviewed-by: Simon Glass <[email protected]>

> diff --git a/test/cmd/config.c b/test/cmd/config.c
> @@ -0,0 +1,28 @@
> +     ut_assertok(run_command('config', 0));
> +     ut_assert_skip_to_line("# Automatically generated file; DO NOT EDIT.");
> +     ut_assert_skip_to_linen("# Compiler:");
> +     ut_assert_skip_to_line('CONFIG_CMD_CONFIG=y');
> +
> +     console_record_reset_enable();

Just to check, is there a reason the first block doesn't finish with
ut_assert_console_end() before the reset? The other invocations round
out with it, and it would be nice to verify we consumed to a known
point rather than discarding whatever was left.

Regards,
Simon

Reply via email to