]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test: dm: Show failing driver name
authorSimon Glass <sjg@chromium.org>
Sun, 23 Jun 2024 20:30:29 +0000 (14:30 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 4 Jul 2024 15:25:21 +0000 (09:25 -0600)
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>
test/py/tests/test_dm.py

index 68d4ea122352d0df88865e916a4e857031e78a56..be94971e455bd19d0c449c350b7459dd52e8fe4b 100644 (file)
@@ -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