[PATCH v2 5/7] test: cmd: part: add UUID lookup tests

Simon Glass sjg at chromium.org
Sat Apr 11 01:02:35 CEST 2026


On 2026-04-04T15:23:27, Dario Binacchi
<dario.binacchi at amarulasolutions.com> wrote:
> test: cmd: part: add UUID lookup tests
>
> Extend the 'part' command unit tests to include partition lookup via
> UUID.
>
> This ensures that the 'number', 'start', and 'size' subcommands
> consistently handle UUIDs as partition identifiers, maintaining
> parity with the name-based lookup functionality.
>
> Signed-off-by: Dario Binacchi <dario.binacchi at amarulasolutions.com>
>
> test/cmd/part.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 47 insertions(+)

You can combine your run_command() and ut_assert() calls in some
cases. Also use definite values where you can, e.g. ut_asserteq(1,
ret)

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


More information about the U-Boot mailing list