]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test: cmd: fix a typo in md5 test
authorHeiko Schocher <hs@nabladev.com>
Tue, 18 Nov 2025 04:30:42 +0000 (05:30 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 4 Dec 2025 15:38:58 +0000 (09:38 -0600)
In dm_test_cmd_hash_md5 accidentially sha256 hash
ist used. Use the correct md5 hash instead.

Signed-off-by: Heiko Schocher <hs@nabladev.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
test/cmd/hash.c

index ced18319f34cc96d799abebe085d303df578f0e6..99895982f67af1e773e246af85bbbbd0b9ad827a 100644 (file)
@@ -39,7 +39,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"));