Skip to content

Commit a5a6468

Browse files
committed
test/config_file: use proper bootloader slot name
'rootfs.0' does not fit well for a bootloader slot. Fixes: da2e0f8 ("src/config_file: prevent device misconfiguration for boot-emmc type") Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
1 parent f9bfc00 commit a5a6468

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/config_file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ static void config_file_boot_emmc_with_bootpart(ConfigFileFixture *fixture, gcon
716716
compatible=FooCorp Super BarBazzer\n\
717717
bootloader=barebox\n\
718718
\n\
719-
[slot.rootfs.0]\n\
719+
[slot.bootloader.0]\n\
720720
device=/dev/mmcblk0boot0\n\
721721
type=boot-emmc\n";
722722

@@ -725,7 +725,7 @@ type=boot-emmc\n";
725725

726726
g_assert_false(load_config(pathname, &config, &ierror));
727727
g_assert_error(ierror, R_CONFIG_ERROR, R_CONFIG_ERROR_INVALID_DEVICE);
728-
g_assert_cmpstr(ierror->message, ==, "slot.rootfs.0: 'device' must refer to the eMMC base device, not the boot partition");
728+
g_assert_cmpstr(ierror->message, ==, "slot.bootloader.0: 'device' must refer to the eMMC base device, not the boot partition");
729729
g_clear_error(&ierror);
730730
}
731731

0 commit comments

Comments
 (0)