summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2016-05-05 23:14:38 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2016-05-05 23:55:20 +0200
commit95f0e25601155755baf4ea1649cd241949120185 (patch)
tree55434c1d25806ce6a24fcc82a87dea15125b97b1
parent673d4f745322d6d9ca274697148267114058beec (diff)
downloadlvm2-95f0e25601155755baf4ea1649cd241949120185.tar.gz
tests: check for thin tools
Test needs repair utils to be available.
-rw-r--r--test/shell/lvconvert-repair-thin-raid.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/shell/lvconvert-repair-thin-raid.sh b/test/shell/lvconvert-repair-thin-raid.sh
index a895e08d6..7afceef27 100644
--- a/test/shell/lvconvert-repair-thin-raid.sh
+++ b/test/shell/lvconvert-repair-thin-raid.sh
@@ -21,6 +21,15 @@ aux have_thin 1 0 0 || skip
aux have_raid 1 4 0 || skip
#
+# To continue this test - we need real tools available
+# When they are not present mark test as skipped, but still
+# let proceed initial part which should work even without tools
+#
+aux have_tool_at_least "$LVM_TEST_THIN_CHECK_CMD" 0 3 1 || skip
+aux have_tool_at_least "$LVM_TEST_THIN_DUMP_CMD" 0 3 1 || skip
+aux have_tool_at_least "$LVM_TEST_THIN_REPAIR_CMD" 0 3 1 || skip
+
+#
# Main
#