diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2018-05-12 22:50:36 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2018-05-12 22:50:36 +0200 |
commit | 7b8b13c62b5407a9959bad2168c0c7dadfc80981 (patch) | |
tree | 778b8557ef0bd7a4c534056a846fc98c19a07f33 | |
parent | 35ffc3f8eb7a326c29c1aa6349ac383d81f2cdc0 (diff) | |
download | lvm2-7b8b13c62b5407a9959bad2168c0c7dadfc80981.tar.gz |
tests: aux detecs supported segments
Replace previous compilation detection of present supported segtypes
with runtime check.
-rw-r--r-- | test/lib/aux.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lib/aux.sh b/test/lib/aux.sh index adfad3b66..0f0967b05 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -1516,6 +1516,10 @@ driver_at_least() { } have_thin() { + lvm segtypes 2>/dev/null | grep -q thin$ || { + echo "Thin is not built-in." >&2 + return 1 + } target_at_least dm-thin-pool "$@" declare -a CONF=() @@ -1556,6 +1560,10 @@ have_raid4 () { } have_cache() { + lvm segtypes 2>/dev/null | grep -q cache$ || { + echo "Cache is not built-in." >&2 + return 1 + } target_at_least dm-cache "$@" declare -a CONF=() |