diff options
| author | Niel Fourie <[email protected]> | 2020-03-30 17:22:58 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2020-07-07 15:37:13 -0400 |
| commit | e369790843d87c2089ae93cd2345723a95ace71d (patch) | |
| tree | 5a9c0e680c79b08f0d8c46f34ae3a60f3a2c9259 /test | |
| parent | 2e48836895d1246b40f7e166695651882e7bb68c (diff) | |
cmd: blkls: Add blkls command
Add a command to print a list of available block device drivers,
and for each, the list of known block devices.
Signed-off-by: Niel Fourie <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Stefan Roese <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'test')
| -rw-r--r-- | test/py/tests/test_lsblk.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/py/tests/test_lsblk.py b/test/py/tests/test_lsblk.py new file mode 100644 index 00000000000..40ffe01263e --- /dev/null +++ b/test/py/tests/test_lsblk.py @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright (C) 2020 +# Niel Fourie, DENX Software Engineering, [email protected] + +import pytest + [email protected]('blk') [email protected]('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 |
