[PATCH] test/py: Run simple dm commands without checking

Simon Glass sjg at chromium.org
Tue Jul 12 12:58:42 CEST 2022


Hi Michal,

On Thu, 7 Jul 2022 at 05:00, Michal Simek <michal.simek at amd.com> wrote:
>
> From: Michal Simek <michal.simek at xilinx.com>
>
> 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 at xilinx.com>
> Signed-off-by: Michal Simek <michal.simek at amd.com>

Make up your mind :-)

> ---
>
>  test/py/tests/test_dm.py | 8 ++++++++
>  1 file changed, 8 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>

You can drop the 'response' var if you are not using it.


>
> diff --git a/test/py/tests/test_dm.py b/test/py/tests/test_dm.py
> index 97203b536e17..ea93061fdfa8 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
> +
> + at pytest.mark.buildconfigspec("cmd_dm")
> +def test_dm_uclass(u_boot_console):
> +    response = u_boot_console.run_command("dm uclass")
> +
> + at pytest.mark.buildconfigspec("cmd_dm")
> +def test_dm_devres(u_boot_console):
> +    response = u_boot_console.run_command("dm devres")
> --
> 2.36.1
>

Regards,
Simon


More information about the U-Boot mailing list