test/py: Make test_bind_unbind_with_uclass() independent

Unbind the test node at the start of this test, so that it can be run
independently from test_bind_unbind_with_node()

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-10-18 09:06:23 +01:00
parent 05ed569280
commit c2ad688206

View File

@@ -121,6 +121,10 @@ def get_next_line(tree, name):
@pytest.mark.buildconfigspec('cmd_bind')
@pytest.mark.singlethread
def test_bind_unbind_with_uclass(ubman):
# Ensure /bind-test is unbound, since it may be bound from DT or the
# previous tests
ubman.run_command('unbind /bind-test')
#bind /bind-test
response = ubman.run_command('bind /bind-test simple_bus')
assert response == ''