test/py: allow multi-digit index in in_tree()
authorPratyush Yadav <p.yadav@ti.com>
Thu, 24 Sep 2020 04:34:17 +0000 (10:04 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 15:55:23 +0000 (11:55 -0400)
commit8a34d3d75207565950c53ac3d68e144d099c9e5f
treeaac27a433679d271de5d25b1eecf693fdb89f1b8
parent1c4db59d9bf711e7f8902eaa145959429d659679
test/py: allow multi-digit index in in_tree()

When more nodes are added for a uclass the index might go into two or
more digits. This means that there are less spaces printed because they
are used up by the extra digits. Update the regular expression to allow
variable-length spacing between the class name and and index.

This was discovered when adding a simple_bus node in test.dts made
test_bind_unbind_with_uclass() fail because the index went up to 10.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
test/py/tests/test_bind.py