mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-18 02:44:37 +00:00
test: dm: Show failing driver name
When a driver is not registered properly it is not clear which one it is. Adjust test_dm_compat() to show this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
1956785bf2
commit
ceffbfb629
1 changed files with 4 additions and 1 deletions
|
@ -13,8 +13,11 @@ def test_dm_compat(u_boot_console):
|
|||
for line in response[:-1].split('\n')[2:])
|
||||
|
||||
response = u_boot_console.run_command('dm compat')
|
||||
bad_drivers = set()
|
||||
for driver in drivers:
|
||||
assert driver in response
|
||||
if not driver in response:
|
||||
bad_drivers.add(driver)
|
||||
assert not bad_drivers
|
||||
|
||||
# check sorting - output looks something like this:
|
||||
# testacpi 0 [ ] testacpi_drv |-- acpi-test
|
||||
|
|
Loading…
Add table
Reference in a new issue