[PATCH v2 5/5] test: cmd: fix a typo in md5 test
Ilias Apalodimas
ilias.apalodimas at linaro.org
Tue Nov 11 09:57:44 CET 2025
On Tue, 11 Nov 2025 at 07:48, Heiko Schocher <hs at nabladev.com> wrote:
>
> In dm_test_cmd_hash_md5 accidentially sha256 hash
> ist used. Use the correct md5 hash instead.
>
> Signed-off-by: Heiko Schocher <hs at nabladev.com>
> Reviewed-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
>
> ---
>
> Changes in v2:
> Added Reviewed-by tag from Heinrich
>
> test/cmd/hash.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/test/cmd/hash.c b/test/cmd/hash.c
> index 3f7f64d27d3..3a3869831ce 100644
> --- a/test/cmd/hash.c
> +++ b/test/cmd/hash.c
> @@ -38,7 +38,7 @@ static int dm_test_cmd_hash_md5(struct unit_test_state *uts)
> "d41d8cd98f00b204e9800998ecf8427e"));
>
> if (!CONFIG_IS_ENABLED(HASH_VERIFY)) {
> - ut_assert(run_command("hash -v sha256 $loadaddr 0 foo", 0));
> + ut_assert(run_command("hash -v md5 $loadaddr 0 foo", 0));
> ut_assertok(ut_check_console_line(
> uts, "hash - compute hash message digest"));
>
> --
> 2.20.1
>
More information about the U-Boot
mailing list