efi_loader: Disable ANSI output for tests
authorSimon Glass <sjg@chromium.org>
Sat, 10 May 2025 12:54:38 +0000 (14:54 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 18 May 2025 06:47:58 +0000 (08:47 +0200)
commit4cb72436403069baf58c0d5187149db7ab76fb85
tree480009f7fd5f08fbe9368d74fd6ab9e4cc44f399
parent126a88d49bcae04bbfc0d6723097cd6341355ade
efi_loader: Disable ANSI output for tests

We don't want ANSI escape-sequences written in tests since it is a pain
to check the output with ut_assert_nextline() et al.

Provide a way to tests to request that these characters not be sent.

Add a proper function comment while we are here, to encourage others.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
include/efi_loader.h
lib/efi_loader/efi_console.c