test_lsblk.py 465 B

1234567891011121314
  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.boardspec('sandbox')
  6. @pytest.mark.buildconfigspec('blk')
  7. @pytest.mark.buildconfigspec('cmd_lsblk')
  8. def test_lsblk(u_boot_console):
  9. """Test that `lsblk` prints a result which includes `host`."""
  10. output = u_boot_console.run_command('lsblk')
  11. assert "Block Driver" in output
  12. assert "sandbox_host_blk" in output