master - tests: use skip flags
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=3b5939bbbb974913db3ff7ac363cc7f1154b894e Commit: 3b5939bbbb974913db3ff7ac363cc7f1154b894e Parent: a2dd1f6e191de8d0ba1292e01338d480958c5a0a Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Oct 27 00:45:37 2015 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Oct 27 00:45:37 2015 +0100
tests: use skip flags
corrected usage of skip flags.
--- test/shell/activate-minor.sh | 3 ++- test/shell/activate-missing-segment.sh | 4 ++-- test/shell/activate-missing.sh | 4 ++-- test/shell/activate-partial.sh | 4 ++-- test/shell/activation-skip.sh | 4 ++-- test/shell/clvmd-restart.sh | 5 +++-- test/shell/lvmetad-ambiguous.sh | 6 +++--- test/shell/lvmetad-autoshutdown.sh | 6 +++--- test/shell/lvmetad-client-filter.sh | 6 +++--- test/shell/lvmetad-disabled.sh | 6 +++--- test/shell/lvmetad-dump.sh | 6 +++--- test/shell/lvmetad-lvm1.sh | 6 +++--- test/shell/lvmetad-lvscan-cache.sh | 6 +++--- test/shell/lvmetad-no-cluster.sh | 3 +++ test/shell/lvmetad-override.sh | 6 +++--- test/shell/lvmetad-pvs.sh | 4 ++-- test/shell/lvmetad-pvscan-cache.sh | 6 +++--- test/shell/lvmetad-pvscan-filter.sh | 6 +++--- test/shell/lvmetad-pvscan-md.sh | 6 +++--- test/shell/lvmetad-pvscan-nomda-bg.sh | 6 +++--- test/shell/lvmetad-pvscan-nomda.sh | 6 +++--- test/shell/lvmetad-restart.sh | 6 +++--- test/shell/lvmetad-test.sh | 4 ++-- test/shell/lvmetad-warning.sh | 6 +++--- 24 files changed, 65 insertions(+), 60 deletions(-)
test/shell/activate-minor.sh +2 -1
@@ -9,12 +9,13 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +SKIP_WITH_LVMPOLLD=1 + . lib/inittest # Just skip this test if minor is already in use... dmsetup info | tee info egrep "^Major, minor: *[0-9]+, 123" info && skip -test -e LOCAL_LVMPOLLD && skip aux prepare_vg 2 lvcreate -a n --zero n -l 1 -n foo $vg
test/shell/activate-missing-segment.sh +2 -2
@@ -16,9 +16,9 @@ # instead lvconvert --repair them?) # - linear LVs with bits missing are not activated -. lib/inittest +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMPOLLD && skip +. lib/inittest aux prepare_vg 2
test/shell/activate-missing.sh +2 -2
@@ -16,9 +16,9 @@ # instead lvconvert --repair them?) # - linear LVs with bits missing are not activated -. lib/inittest +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMPOLLD && skip +. lib/inittest aux prepare_vg 4
test/shell/activate-partial.sh +2 -2
@@ -9,9 +9,9 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMPOLLD && skip +. lib/inittest aux prepare_vg 3
test/shell/activation-skip.sh +2 -2
@@ -9,9 +9,9 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMPOLLD && skip +. lib/inittest # Test skip activation flag -k|--setactivationskip
test/shell/clvmd-restart.sh +3 -2
@@ -13,11 +13,12 @@ export LVM_CLVMD_BINARY=clvmd export LVM_BINARY=lvm +SKIP_WITHOUT_CLVMD=1 +SKIP_WITH_LVMPOLLD=1 + . lib/inittest # only clvmd based test, skip otherwise -test -e LOCAL_LVMPOLLD && skip -test -e LOCAL_CLVMD || skip read LOCAL_CLVMD < LOCAL_CLVMD # TODO read from build, for now hardcoded
test/shell/lvmetad-ambiguous.sh +3 -3
@@ -9,10 +9,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITHOUT_LVMETAD=1 +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMETAD || skip -test -e LOCAL_LVMPOLLD && skip +. lib/inittest aux prepare_pvs 2
test/shell/lvmetad-autoshutdown.sh +3 -3
@@ -9,10 +9,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITHOUT_LVMETAD=1 +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMETAD || skip -test -e LOCAL_LVMPOLLD && skip +. lib/inittest kill -0 $(< LOCAL_LVMETAD) || die "lvmetad is already dead"
test/shell/lvmetad-client-filter.sh +3 -3
@@ -9,10 +9,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITHOUT_LVMETAD=1 +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMETAD || skip -test -e LOCAL_LVMPOLLD && skip +. lib/inittest aux prepare_pvs 2
test/shell/lvmetad-disabled.sh +3 -3
@@ -9,10 +9,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITHOUT_LVMETAD=1 +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMETAD || skip -test -e LOCAL_LVMPOLLD && skip +. lib/inittest kill $(< LOCAL_LVMETAD) while test -e "$TESTDIR/lvmetad.socket"; do echo -n .; sleep .1; done # wait for the socket close
test/shell/lvmetad-dump.sh +3 -3
@@ -9,10 +9,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITHOUT_LVMETAD=1 +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMETAD || skip -test -e LOCAL_LVMPOLLD && skip +. lib/inittest aux prepare_pvs 2 vgcreate $vg1 "$dev1" "$dev2"
test/shell/lvmetad-lvm1.sh +3 -3
@@ -9,10 +9,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITHOUT_LVMETAD=1 +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMETAD || skip -test -e LOCAL_LVMPOLLD && skip +. lib/inittest aux prepare_devs 2 pvcreate --metadatatype 1 "$dev1"
test/shell/lvmetad-lvscan-cache.sh +3 -3
@@ -9,10 +9,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITHOUT_LVMETAD=1 +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMETAD || skip -test -e LOCAL_LVMPOLLD && skip +. lib/inittest aux prepare_pvs 2
test/shell/lvmetad-no-cluster.sh +3 -0
@@ -9,6 +9,9 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +SKIP_WITHOUT_CLVMD=1 +SKIP_WITH_LVMPOLLD=1 + . lib/inittest test -e LOCAL_CLVMD || skip
test/shell/lvmetad-override.sh +3 -3
@@ -9,10 +9,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITHOUT_LVMETAD=1 +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMETAD || skip -test -e LOCAL_LVMPOLLD && skip +. lib/inittest aux prepare_pvs 2
test/shell/lvmetad-pvs.sh +2 -2
@@ -9,9 +9,9 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITHOUT_LVMPOLLD=1 -test -e LOCAL_LVMPOLLD && skip +. lib/inittest aux prepare_pvs 1 20000 pvs $(cat DEVICES) | grep "$dev1"
test/shell/lvmetad-pvscan-cache.sh +3 -3
@@ -9,10 +9,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITHOUT_LVMETAD=1 +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMETAD || skip -test -e LOCAL_LVMPOLLD && skip +. lib/inittest aux prepare_pvs 2
test/shell/lvmetad-pvscan-filter.sh +3 -3
@@ -9,10 +9,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITHOUT_LVMETAD=1 +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMETAD || skip -test -e LOCAL_LVMPOLLD && skip +. lib/inittest aux prepare_pvs 2
test/shell/lvmetad-pvscan-md.sh +3 -3
@@ -9,10 +9,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITHOUT_LVMETAD=1 +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMETAD || skip -test -e LOCAL_LVMPOLLD && skip +. lib/inittest test -f /proc/mdstat && grep -q raid0 /proc/mdstat || \ modprobe raid0 || skip
test/shell/lvmetad-pvscan-nomda-bg.sh +3 -3
@@ -9,10 +9,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITHOUT_LVMETAD=1 +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMETAD || skip -test -e LOCAL_LVMPOLLD && skip +. lib/inittest kill $(< LOCAL_LVMETAD) rm LOCAL_LVMETAD
test/shell/lvmetad-pvscan-nomda.sh +3 -3
@@ -9,10 +9,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITHOUT_LVMETAD=1 +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMETAD || skip -test -e LOCAL_LVMPOLLD && skip +. lib/inittest kill $(< LOCAL_LVMETAD) rm LOCAL_LVMETAD
test/shell/lvmetad-restart.sh +3 -3
@@ -9,10 +9,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITHOUT_LVMETAD=1 +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMETAD || skip -test -e LOCAL_LVMPOLLD && skip +. lib/inittest aux prepare_pvs 2
test/shell/lvmetad-test.sh +2 -2
@@ -9,9 +9,9 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMPOLLD && skip +. lib/inittest aux prepare_pvs 2
test/shell/lvmetad-warning.sh +3 -3
@@ -9,10 +9,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -. lib/inittest +SKIP_WITHOUT_LVMETAD=1 +SKIP_WITH_LVMPOLLD=1 -test -e LOCAL_LVMETAD || skip -test -e LOCAL_LVMPOLLD && skip +. lib/inittest aux prepare_pvs 2