]> sourceware.org Git - lvm2.git/commitdiff
test: move common code for thin init
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 10 Oct 2012 12:57:02 +0000 (14:57 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 10 Oct 2012 19:22:11 +0000 (21:22 +0200)
test/lib/aux.sh
test/shell/discards-thin.sh
test/shell/lvconvert-thin.sh
test/shell/lvcreate-thin-snap.sh
test/shell/lvcreate-thin.sh

index d972d10f6d3a9b9c24d637439fbff93579a11660..f179e313ed1bc2813c06c66b9c380aa0ccd21115 100644 (file)
@@ -534,6 +534,9 @@ have_thin()
 {
     target_at_least dm-thin-pool "$@" || exit 1
     test "$THIN" = shared || test "$THIN" = internal || exit 1
+
+# disable thin_check if not present in system
+    which thin_check || lvmconf 'global/thin_check_executable = ""'
 }
 
 test -f DEVICES && devs=$(cat DEVICES)
index ec3bd1f8b44daccab50e27bd8785f6ba7cfdf0e8..4aa429344b436597b1a518c3cd51a5880d7b2cae 100644 (file)
@@ -22,9 +22,6 @@ aux have_thin 1 1 0 || skip
 
 aux prepare_pvs 2 64
 
-# disable thin_check if not present in system
-which thin_check || aux lvmconf 'global/thin_check_executable = ""'
-
 clustered=
 test -e LOCAL_CLVMD && clustered="--clustered y"
 
index abaa620cb6f15c346b512f67972621342efa57c8..32661cdd7ffc75ec8f5622ac43dbcd0769348f8e 100644 (file)
@@ -19,9 +19,6 @@ aux have_thin 1 0 0 || skip
 
 aux prepare_pvs 4 64
 
-# disable thin_check if not present in system
-which thin_check || aux lvmconf 'global/thin_check_executable = ""'
-
 clustered=
 test -e LOCAL_CLVMD && clustered="--clustered y"
 
index 2ee8748eb89f8662e9312583b03ed61d4367b182..18846e35f7a528fbd9cbb20a124d074e19089436 100644 (file)
@@ -30,9 +30,6 @@ aux have_thin 1 0 0 || skip
 
 aux prepare_pvs 2 64
 
-# disable thin_check if not present in system
-which thin_check || aux lvmconf 'global/thin_check_executable = ""'
-
 clustered=
 test -e LOCAL_CLVMD && clustered="--clustered y"
 
index 7ba97ed0ef56a9587af5a6e8fb0e0d9ccd5288a8..8ad552b7249b092721c178c0e0618dba7c4e7b5a 100644 (file)
@@ -33,9 +33,6 @@ aux have_thin 1 0 0 || skip
 
 aux prepare_pvs 2 64
 
-# disable thin_check if not present in system
-which thin_check || aux lvmconf 'global/thin_check_executable = ""'
-
 clustered=
 test -e LOCAL_CLVMD && clustered="--clustered y"
 
This page took 0.079382 seconds and 5 git commands to generate.