diff options
author | Simon Glass | 2024-06-23 14:30:29 -0600 |
---|---|---|
committer | Tom Rini | 2024-07-04 09:25:21 -0600 |
commit | ceffbfb629eb469f05a4d1bf92bf20515a1df0c9 (patch) | |
tree | fc7333fe24a1e101cf6abb1495dce322ebf33097 /test | |
parent | 1956785bf270036c8fa54f965924d65dcd02fd3f (diff) |
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>
Diffstat (limited to 'test')
-rw-r--r-- | test/py/tests/test_dm.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/py/tests/test_dm.py b/test/py/tests/test_dm.py index 68d4ea12235..be94971e455 100644 --- a/test/py/tests/test_dm.py +++ b/test/py/tests/test_dm.py @@ -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 |