2020-03-30 17:22:58 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
|
|
|
# Copyright (C) 2020
|
|
|
|
|
# Niel Fourie, DENX Software Engineering, lusus@denx.de
|
|
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
|
2021-11-30 15:33:53 +01:00
|
|
|
@pytest.mark.boardspec('sandbox')
|
2020-03-30 17:22:58 +02:00
|
|
|
@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
|