diff options
| author | Niel Fourie <[email protected]> | 2020-03-24 16:17:03 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2020-07-07 15:22:42 -0400 |
| commit | 0ffdfbd1d0eca769878913d15f232c9219cf2aa1 (patch) | |
| tree | 61c6ebad8c31b303aa34a531ddc75702a5ccba68 /test/py | |
| parent | 1e88e78177da80fa8e9fa9fc7613657478d61d1e (diff) | |
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 <[email protected]>
Cc: Simon Glass <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'test/py')
| -rw-r--r-- | test/py/tests/test_part.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/py/tests/test_part.py b/test/py/tests/test_part.py new file mode 100644 index 00000000000..cba98045101 --- /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, [email protected] + +import pytest + [email protected]('cmd_part') [email protected]('partitions') [email protected]('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 |
