Niel Fourie | 09262bb | 2020-03-30 17:22:58 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
| 2 | # Copyright (C) 2020 |
| 3 | # Niel Fourie, DENX Software Engineering, lusus@denx.de |
| 4 | |
| 5 | import pytest |
| 6 | |
Patrick Delaunay | 260045a | 2021-11-30 15:33:53 +0100 | [diff] [blame] | 7 | @pytest.mark.boardspec('sandbox') |
Niel Fourie | 09262bb | 2020-03-30 17:22:58 +0200 | [diff] [blame] | 8 | @pytest.mark.buildconfigspec('blk') |
| 9 | @pytest.mark.buildconfigspec('cmd_lsblk') |
Simon Glass | ddba520 | 2025-02-09 09:07:14 -0700 | [diff] [blame] | 10 | def test_lsblk(ubman): |
Niel Fourie | 09262bb | 2020-03-30 17:22:58 +0200 | [diff] [blame] | 11 | """Test that `lsblk` prints a result which includes `host`.""" |
Simon Glass | ddba520 | 2025-02-09 09:07:14 -0700 | [diff] [blame] | 12 | output = ubman.run_command('lsblk') |
Niel Fourie | 09262bb | 2020-03-30 17:22:58 +0200 | [diff] [blame] | 13 | assert "Block Driver" in output |
| 14 | assert "sandbox_host_blk" in output |