LVM2/test api/percent.sh lib/aux.sh lib/utils.sh
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2011-01-07 15:04:52
Modified files:
test/api : percent.sh
test/lib : aux.sh utils.sh
Log message:
Skip the api/percent test on kernels <= 2.6.32.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/api/percent.sh.diff?cvsroot=lvm2&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/lib/aux.sh.diff?cvsroot=lvm2&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/lib/utils.sh.diff?cvsroot=lvm2&r1=1.2&r2=1.3
test/api/percent.sh +3 -0
@@ -13,6 +13,9 @@ . lib/test +linux_minor=$(echo `uname -r` | cut -d'.' -f3 | cut -d'-' -f1) +test $linux_minor -le 32 && skip + aux prepare_devs 2 vgcreate -c n -s 4k $vg $(cat DEVICES) lvcreate -n foo $vg -l 5
test/lib/aux.sh +0 -5
@@ -10,11 +10,6 @@ . lib/utils -skip() { - touch SKIP_THIS_TEST - exit 1 -} - prepare_clvmd() { if test -z "$LVM_TEST_LOCKING" || test "$LVM_TEST_LOCKING" -ne 3 ; then return 0 # not needed
test/lib/utils.sh +5 -0
@@ -146,6 +146,11 @@ fi } +skip() { + touch SKIP_THIS_TEST + exit 200 +} + . lib/paths || { echo >&2 you must run make first; exit 1; } PATH=$abs_top_builddir/test/lib:$PATH