]> git.dujemihanovic.xyz Git - u-boot.git/commit
test/py: Update test_bind
authorPatrice Chotard <patrice.chotard@st.com>
Tue, 28 Jul 2020 07:13:34 +0000 (09:13 +0200)
committerSimon Glass <sjg@chromium.org>
Sat, 22 Aug 2020 13:58:39 +0000 (07:58 -0600)
commite37d4c4fd2c8b3db43faa4e36641b72a2c0ea69f
tree7b3f5a0b9750eca5930fb82f3a429231ffe3f4b1
parent1f0d5885dbbd669400e5d8cfdb3998c7945e0a7a
test/py: Update test_bind

As bind-test is now binded at sandbox startup and no more by
test_bind.py, bind-test nodes are not located at the end of
"dm tree" output, but can be located everywhere in the tree, so
bind-test output could either be:

 simple_bus    0  [   ]   generic_simple_bus    |-- bind-test
 phy           0  [   ]   phy_sandbox           |   |-- bind-test-child1
 simple_bus    1  [   ]   generic_simple_bus    |   `-- bind-test-child2

or:

 simple_bus    5  [   ]   generic_simple_bus    `-- bind-test
 phy           2  [   ]   phy_sandbox               |-- bind-test-child1
 simple_bus    6  [   ]   generic_simple_bus        `-- bind-test-child2

in_tree() function need to be updated to take care of that change.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/py/tests/test_bind.py