]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test: boot: Use a consistent name for the script bootmeth
authorSimon Glass <sjg@chromium.org>
Sat, 19 Oct 2024 15:21:50 +0000 (09:21 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 2 Nov 2024 17:13:59 +0000 (11:13 -0600)
In the bootflow tests the script bootmeth is bound with the name
bootmeth_script whereas the others have a name without the bootmeth_
prefix. Adjust it to be the same.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
test/boot/bootflow.c

index 0d4e966892efdf0ee87f7d4d3e2e29b9b1a753d1..8762d21ef3c3eb0241bbfb0bfcda6b5c138ab9ea 100644 (file)
@@ -542,7 +542,7 @@ static int prep_mmc_bootdev(struct unit_test_state *uts, const char *mmc_dev,
        /* Enable the script bootmeth too */
        ut_assertok(uclass_first_device_err(UCLASS_BOOTSTD, &bootstd));
        ut_assertok(device_bind(bootstd, DM_DRIVER_REF(bootmeth_2script),
-                               "bootmeth_script", 0, ofnode_null(), &dev));
+                               "script", 0, ofnode_null(), &dev));
 
        /* Enable the cros bootmeth if needed */
        if (IS_ENABLED(CONFIG_BOOTMETH_CROS) && bind_cros_android) {