]> sourceware.org Git - lvm2.git/commitdiff
Skip the api/percent test on kernels <= 2.6.32.
authorPetr Rockai <prockai@redhat.com>
Fri, 7 Jan 2011 15:04:52 +0000 (15:04 +0000)
committerPetr Rockai <prockai@redhat.com>
Fri, 7 Jan 2011 15:04:52 +0000 (15:04 +0000)
test/api/percent.sh
test/lib/aux.sh
test/lib/utils.sh

index f73af54244cea6dc28465e17fe066ba4e818da00..52cc7991d1c5cfe8f73f5746681e674bdb693d73 100644 (file)
@@ -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
index b0944e4e08802a3f09dd3947bafbff9a0f0f920e..c4f62ed68144ed08aae8de3336259b3aba5cd0a4 100644 (file)
 
 . 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
index dd1d9eb83de096a5b6eab747d61a9d116b5a01cc..7f9ec13135db1e387d8d7d8fae9127484a3d490d 100644 (file)
@@ -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
This page took 0.040842 seconds and 5 git commands to generate.