mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 01:44:34 +00:00

This fixture name is quite long and results in lots of verbose code. We know this is U-Boot so the 'u_boot_' part is not necessary. But it is also a bit of a misnomer, since it provides access to all the information available to tests. It is not just the console. It would be too confusing to use con as it would be confused with config and it is probably too short. So shorten it to 'ubman'. Signed-off-by: Simon Glass <sjg@chromium.org> Link: https://lore.kernel.org/u-boot/CAFLszTgPa4aT_J9h9pqeTtLCVn4x2JvLWRcWRD8NaN3uoSAtyA@mail.gmail.com/
14 lines
480 B
Python
14 lines
480 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_part_types(ubman):
|
|
"""Test that `part types` prints a result which includes `EFI`."""
|
|
output = ubman.run_command('part types')
|
|
assert "Supported partition tables:" in output
|
|
assert "EFI" in output
|