]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test/py: Run simple dm commands without checking
authorMichal Simek <michal.simek@xilinx.com>
Thu, 7 Jul 2022 10:59:42 +0000 (12:59 +0200)
committerMichal Simek <michal.simek@amd.com>
Tue, 26 Jul 2022 06:23:54 +0000 (08:23 +0200)
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 <michal.simek@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/r/e6c4b8b44445c16cee84436627642ccc9886f507.1657191580.git.michal.simek@amd.com
test/py/tests/test_dm.py

index 97203b536e172326aa8aa2819ff305c157af0f28..ea93061fdfa866c18ee183489ee88a35d206537a 100644 (file)
@@ -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")