From 0ffdfbd1d0eca769878913d15f232c9219cf2aa1 Mon Sep 17 00:00:00 2001 From: Niel Fourie Date: Tue, 24 Mar 2020 16:17:03 +0100 Subject: cmd: part: Add subcommand to list supported partition tables Add a subcommand "types" to the part command, which lists the supported partition table types. Signed-off-by: Niel Fourie Cc: Simon Glass Reviewed-by: Simon Glass --- test/py/tests/test_part.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/py/tests/test_part.py (limited to 'test/py/tests/test_part.py') diff --git a/test/py/tests/test_part.py b/test/py/tests/test_part.py new file mode 100644 index 0000000000..cba9804510 --- /dev/null +++ b/test/py/tests/test_part.py @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2020 +# Niel Fourie, DENX Software Engineering, lusus@denx.de + +import pytest + +@pytest.mark.buildconfigspec('cmd_part') +@pytest.mark.buildconfigspec('partitions') +@pytest.mark.buildconfigspec('efi_partition') +def test_dm_compat(u_boot_console): + """Test that `part types` prints a result which includes `EFI`.""" + output = u_boot_console.run_command('part types') + assert "Supported partition tables:" in output + assert "EFI" in output -- cgit