]> sourceware.org Git - lvm2.git/commitdiff
tests: check for cache_version that supports v2
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 4 Sep 2020 18:35:55 +0000 (20:35 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 8 Sep 2020 19:23:03 +0000 (21:23 +0200)
test/shell/cache-single-split.sh

index 7fc17867cbb726addd45faa093e46c5758454d0d..a6deb0dc90d95e6e9d934fe648d078fae91f94df 100644 (file)
@@ -48,6 +48,11 @@ mount_umount()
 aux have_cache 1 10 0 || skip
 which mkfs.xfs || skip
 
+case $(cache_check -V) in
+# support for v2 starts with version 0.7
+0.[0..6]*) skip 'At least version 0.7 of cache_check tool is needed.' ;;
+esac
+
 mount_dir="mnt"
 mkdir -p "$mount_dir"
 
This page took 0.03877 seconds and 5 git commands to generate.