]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test: fix cmt/msr test
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 23 Nov 2025 22:57:07 +0000 (23:57 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 5 Dec 2025 14:54:44 +0000 (08:54 -0600)
The original value of the first variable msr (0x200) is not controlled by
U-Boot. Don't make any assumption.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
test/cmd/msr.c

index e9a152ee5bfe804448e7d9c64b9ced7caf29a29a..7512c83338aea9b2a1b45ad1dcfbe63c15bf23f3 100644 (file)
 static int cmd_test_msr(struct unit_test_state *uts)
 {
        ut_assertok(run_commandf("msr read 200"));
-       ut_assert_nextline("00000000 ffe00006");
+       ut_assert_nextlinen("0000");
        ut_assert_console_end();
 
        /* change the first variable msr and see it reflected in the mtrr cmd */
        ut_assertok(run_commandf("mtrr"));
        ut_assert_nextline("CPU 65537:");
        ut_assert_nextlinen("Reg");
-       ut_assert_nextlinen("0   Y     Back         00000000ffe00000");
+       ut_assert_nextlinen("0   Y     Back");
        ut_assertok(console_record_reset_enable());
 
        /* change the type from 6 to 5 */