]> git.baikalelectronics.ru Git - uboot.git/commit
test: dm: restore /firmware nodes after testing
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Thu, 8 Jun 2023 00:55:59 +0000 (09:55 +0900)
committerTom Rini <trini@konsulko.com>
Wed, 21 Jun 2023 00:56:27 +0000 (20:56 -0400)
commita5d3ddf98e55286b156fcfa15239d2e881544634
tree27d68ac47a07e9a8cb54cf93065385d630f2d659
parent008ec3c00f7fbee64187c42e5fed21d3615a3bfc
test: dm: restore /firmware nodes after testing

dm_test_restore() is called after dm unit test is run.
But this function does not scan any nodes under /firmware since
it calls dm_scan_fdt().

This causes an issue. For instance, scmi_sandbox_agent device
will disappear after running 'ut dm scmi_sandbox_agent'.

So call dm_extended_scan() instead. This change will be coherent
with what dm_scan() and test_pre_run() does.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/test-main.c