repo: https://github.com/u-boot/u-boot commit: d80bb749fab53da72c4a0e09b8c2d2aaa3103c91 Change-Id: Ie6434426e1ec15bc08bb1832798e371f3fd5fb29
14 lines
431 B
Python
14 lines
431 B
Python
# SPDX-License-Identifier: GPL-2.0+
|
|
# Copyright (C) 2020
|
|
# Niel Fourie, DENX Software Engineering, lusus@denx.de
|
|
|
|
import pytest
|
|
|
|
@pytest.mark.buildconfigspec('blk')
|
|
@pytest.mark.buildconfigspec('cmd_lsblk')
|
|
def test_lsblk(u_boot_console):
|
|
"""Test that `lsblk` prints a result which includes `host`."""
|
|
output = u_boot_console.run_command('lsblk')
|
|
assert "Block Driver" in output
|
|
assert "sandbox_host_blk" in output
|