From 9ce215ed01ce22bc2c10a461a12baadcc35a747a Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Fri, 7 Jan 2011 15:04:52 +0000 Subject: [PATCH] Skip the api/percent test on kernels <= 2.6.32. --- test/api/percent.sh | 3 +++ test/lib/aux.sh | 5 ----- test/lib/utils.sh | 5 +++++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/test/api/percent.sh b/test/api/percent.sh index f73af5424..52cc7991d 100644 --- a/test/api/percent.sh +++ b/test/api/percent.sh @@ -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 diff --git a/test/lib/aux.sh b/test/lib/aux.sh index b0944e4e0..c4f62ed68 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -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 diff --git a/test/lib/utils.sh b/test/lib/utils.sh index dd1d9eb83..7f9ec1313 100644 --- a/test/lib/utils.sh +++ b/test/lib/utils.sh @@ -146,6 +146,11 @@ finish_udev_transaction() { 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 -- 2.43.5