pytest-dev / pytest-testinfra

Testinfra test your infrastructures
https://testinfra.readthedocs.io
Apache License 2.0
2.37k stars 355 forks source link

Extend LinuxBlockDevice to use information from lsblk and add method to return all block devices on the system #760

Open fsuba opened 5 months ago

fsuba commented 5 months ago

The purpose of this PR is to give us more information about the block devices on a system. lsblk is part of the util-linux package, the same package as blockdev. With the information from lsblk, we can easily return all the block devices found on a system.