1# SPDX-License-Identifier: GPL-2.0+
2# Copyright (C) 2020
3# Niel Fourie, DENX Software Engineering, lusus@denx.de
4
5import pytest
6
7@pytest.mark.boardspec('sandbox')
8@pytest.mark.buildconfigspec('blk')
9@pytest.mark.buildconfigspec('cmd_lsblk')
10def test_lsblk(u_boot_console):
11    """Test that `lsblk` prints a result which includes `host`."""
12    output = u_boot_console.run_command('lsblk')
13    assert "Block Driver" in output
14    assert "sandbox_host_blk" in output
15