test: bootm: Ensure tests can be run twice
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Wed, 6 Nov 2024 13:50:17 +0000 (13:50 +0000)
committerTom Rini <trini@konsulko.com>
Sun, 17 Nov 2024 19:13:02 +0000 (13:13 -0600)
commit1b2a5723880ba2fb94d2f647e528172f94b50095
tree13117f92de3ca37e5f668527d2af58364fd0ec8f
parent3fcbae5f849b2a5c36ad5ca0d90dd94191760053
test: bootm: Ensure tests can be run twice

Some of the bootm tests rely on state that is assumed to be
correct but is changed by the tests. This means that running
'ut bootm' twice will result in failures on the second run
as the state left by the first run is not what the tests
expect.
Fix this by ensuring the state is as expected by explicitly
setting that state.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/bootm.c