From 2075215dd968b5488f87a59c4d3494a8b8c1460d Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Thu, 7 Jul 2022 12:52:26 +0200 Subject: py: tests: Bind should run only on sandbox Disable test to run on any other platform than sandbox. Signed-off-by: Michal Simek Signed-off-by: Michal Simek Reviewed-by: Simon Glass Link: https://lore.kernel.org/r/786bfdfda7dee4494e39c3fff699970ecd623116.1657191142.git.michal.simek@amd.com --- test/py/tests/test_bind.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/py/tests/test_bind.py b/test/py/tests/test_bind.py index d7e6626d45f..c90c54d266f 100644 --- a/test/py/tests/test_bind.py +++ b/test/py/tests/test_bind.py @@ -25,7 +25,7 @@ def in_tree(response, name, uclass, drv, depth, last_child): return True return False - +@pytest.mark.boardspec('sandbox') @pytest.mark.buildconfigspec('cmd_bind') def test_bind_unbind_with_node(u_boot_console): @@ -117,6 +117,7 @@ def get_next_line(tree, name): break return child_line +@pytest.mark.boardspec('sandbox') @pytest.mark.buildconfigspec('cmd_bind') def test_bind_unbind_with_uclass(u_boot_console): #bind /bind-test -- cgit v1.2.3 From 34b01c22ccd2cf55a85a05c8d542bab0523f76c0 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Thu, 7 Jul 2022 12:59:42 +0200 Subject: test/py: Run simple dm commands without checking Just to make sure that dm commands can operate. This was the problem on Microblaze in past without fixing manual relocation. Signed-off-by: Michal Simek Signed-off-by: Michal Simek Reviewed-by: Simon Glass Link: https://lore.kernel.org/r/e6c4b8b44445c16cee84436627642ccc9886f507.1657191580.git.michal.simek@amd.com --- test/py/tests/test_dm.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/py/tests/test_dm.py b/test/py/tests/test_dm.py index 97203b536e1..ea93061fdfa 100644 --- a/test/py/tests/test_dm.py +++ b/test/py/tests/test_dm.py @@ -33,3 +33,11 @@ def test_dm_static(u_boot_console): response = u_boot_console.run_command('dm drivers') for driver in drivers: assert driver in response + +@pytest.mark.buildconfigspec("cmd_dm") +def test_dm_uclass(u_boot_console): + response = u_boot_console.run_command("dm uclass") + +@pytest.mark.buildconfigspec("cmd_dm") +def test_dm_devres(u_boot_console): + response = u_boot_console.run_command("dm devres") -- cgit v1.2.3