mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-08 05:43:21 +09:00
![Niel Fourie](/assets/img/avatar_default.png)
Add a subcommand "types" to the part command, which lists the supported partition table types. Signed-off-by: Niel Fourie <lusus@denx.de> Cc: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
15 lines
497 B
Python
15 lines
497 B
Python
# 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
|