test_drivers.bash: check for binaries that the driver expects
Skip devicemapper tests if binaries that it expects to find aren't present. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
parent
364b07aba9
commit
97363a8fe3
|
|
@ -12,6 +12,11 @@ btrfs() {
|
|||
}
|
||||
|
||||
devicemapper() {
|
||||
for binary in pvcreate vgcreate lvcreate lvconvert lvchange thin_check ; do
|
||||
if ! which $binary > /dev/null 2> /dev/null ; then
|
||||
return 1
|
||||
fi
|
||||
done
|
||||
pkg-config devmapper 2> /dev/null
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue