test_lsblk.py 431 B

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