]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: boot: fix bootdev_test_any for when DSA_SANDBOX is disabled
authorJerome Forissier <jerome.forissier@linaro.org>
Wed, 16 Oct 2024 09:56:25 +0000 (11:56 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 16 Oct 2024 17:11:56 +0000 (11:11 -0600)
commit69aee0c80229536acdd02f6c3187f7cfdee597bc
tree19ec0d184e26d1d3a966790d020926d79c588b00
parentce7005620626cbbba4ec933e1432c28c4ffa353a
test: boot: fix bootdev_test_any for when DSA_SANDBOX is disabled

When DSA_SANDBOX is not set, the sandbox tests fail as follows:

 $ ./test/py/test.py --build-dir=$(pwd) -k bootdev_test_any
 [...]
 Test: bootdev_test_any: bootdev.c
 test/boot/bootdev.c:156, bootdev_test_any(): "mmc2" = media->name: Expected "mmc2", got "mmc0"
 [...]

This is due to the device list containing two less entries than
expected. Therefore, adjust the expected index to be two less when
DSA_SANDBOX is disabled.

The actual use case is NET_LWIP=y (to be introduced in later patches)
which implies DSA_SANDBOX=n for the time being.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/boot/bootdev.c