aboutsummaryrefslogtreecommitdiff
path: root/test/py
diff options
context:
space:
mode:
authorSimon Glass2018-12-05 18:42:52 -0700
committerSimon Glass2019-01-14 17:47:13 -0700
commit54d2cfe6ee11dc5bcce55d41b91d92f9a53e6485 (patch)
treee3ed9b136f5c1f9c273c3bd35df5dbd343139ef8 /test/py
parent90a29fcc1f36fb5c05a1eaedb16793c320e00d39 (diff)
dm: Tidy up 'dm tree' output when there are many devices
At present the 'Index' column assumes there is only one digit. But on some devices (e.g. snow) there are a lot of regulators and GPIO banks. Adjust the output to allow for two digits without messing up the display. Also capatalise the heading to match. Fixes: 5197dafc42 (dm: core: Widen the dump tree to show more of the driver's name.) Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Liviu Dudau <liviu.dudau@foss.arm.com>
Diffstat (limited to 'test/py')
-rw-r--r--test/py/tests/test_bind.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/py/tests/test_bind.py b/test/py/tests/test_bind.py
index dee3fee5661..917839f6286 100644
--- a/test/py/tests/test_bind.py
+++ b/test/py/tests/test_bind.py
@@ -13,7 +13,8 @@ def in_tree(response, name, uclass, drv, depth, last_child):
else:
leaf = leaf + '`'
leaf = leaf + '-- ' + name
- line = ' *{:10.10} [0-9]* \[ [ +] \] {:20.20} {}$'.format(uclass, drv, leaf)
+ line = (' *{:10.10} [0-9]* \[ [ +] \] {:20.20} {}$'
+ .format(uclass, drv, leaf))
prog = re.compile(line)
for l in lines:
if prog.match(l):