master - test: move common code for thin init
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d4eded9fd6686310ea653da889f40dbe8358f244 Commit: d4eded9fd6686310ea653da889f40dbe8358f244 Parent: b6512b10ae258b2d7e9b2cb6c5fff2edb2042c96 Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Oct 10 14:57:02 2012 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Oct 10 21:22:11 2012 +0200
test: move common code for thin init
--- test/lib/aux.sh | 3 +++ test/shell/discards-thin.sh | 3 --- test/shell/lvconvert-thin.sh | 3 --- test/shell/lvcreate-thin-snap.sh | 3 --- test/shell/lvcreate-thin.sh | 3 --- 5 files changed, 3 insertions(+), 12 deletions(-)
test/lib/aux.sh +3 -0
@@ -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)
test/shell/discards-thin.sh +0 -3
@@ -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"
test/shell/lvconvert-thin.sh +0 -3
@@ -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"
test/shell/lvcreate-thin-snap.sh +0 -3
@@ -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"
test/shell/lvcreate-thin.sh +0 -3
@@ -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"