]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: Expand implementation of ut_list_has_dm_tests()
authorSimon Glass <sjg@chromium.org>
Sat, 19 Oct 2024 15:21:56 +0000 (09:21 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 4 Nov 2024 03:27:12 +0000 (21:27 -0600)
commitfbdac8155c8978e02e54fc1a5952e8d53f7a2eee
treea36984b4c10243007e08485c9b84cb44028c8295
parent5224aa1dadee67ed4c575c4d1c1e2d4c10be0c18
test: Expand implementation of ut_list_has_dm_tests()

This function assumes that all tests in a suite are being run. This
means that it can sometimes call dm_test_restore() when it should not.

The impact of this is that it is not possible, for example, to run
'ut bootstd bootflow_cros' and then check the state of bootstd
afterwards, since all devices are removed and recreated.

Update the function to take account of any selected test, to avoid this
problem.

Add a comment for test_insert while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/test-main.c