blob: 40ffe01263e628d540c74a2f389db25e032f1b2e [file] [log] [blame]
Niel Fourie09262bb2020-03-30 17:22:58 +02001# 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.buildconfigspec('blk')
8@pytest.mark.buildconfigspec('cmd_lsblk')
9def test_lsblk(u_boot_console):
10 """Test that `lsblk` prints a result which includes `host`."""
11 output = u_boot_console.run_command('lsblk')
12 assert "Block Driver" in output
13 assert "sandbox_host_blk" in output