diff --git a/test/lib/aux.sh b/test/lib/aux.sh index 65eb1e7a9..63896d16b 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -641,9 +641,10 @@ api() { "$abs_top_builddir/test/api/wrapper" "$@" && rm -f debug.log } -skip_if_mirror_recovery_broken() { - if test `uname -r` = 3.3.4-5.fc17.i686; then skip; fi - if test `uname -r` = 3.3.4-5.fc17.x86_64; then skip; fi +mirror_recovery_works() { + case $(uname -r) in + 3.3.4-5.fc17.i686|3.3.4-5.fc17.x86_64) return 1 ;; + esac } raid456_replace_works() { diff --git a/test/shell/lvconvert-repair-dmeventd.sh b/test/shell/lvconvert-repair-dmeventd.sh index a2d3ef887..472c81261 100644 --- a/test/shell/lvconvert-repair-dmeventd.sh +++ b/test/shell/lvconvert-repair-dmeventd.sh @@ -12,7 +12,7 @@ . lib/test which mkfs.ext2 || skip -aux skip_if_mirror_recovery_broken +aux mirror_recovery_works || skip aux prepare_dmeventd aux prepare_vg 5 diff --git a/test/shell/lvconvert-repair-transient-dmeventd.sh b/test/shell/lvconvert-repair-transient-dmeventd.sh index 6bd1442f8..1cda2154b 100644 --- a/test/shell/lvconvert-repair-transient-dmeventd.sh +++ b/test/shell/lvconvert-repair-transient-dmeventd.sh @@ -11,7 +11,7 @@ . lib/test -aux skip_if_mirror_recovery_broken +aux mirror_recovery_works || skip aux prepare_vg 5 aux prepare_dmeventd diff --git a/test/shell/lvconvert-repair-transient.sh b/test/shell/lvconvert-repair-transient.sh index 3baa29340..3614a691a 100644 --- a/test/shell/lvconvert-repair-transient.sh +++ b/test/shell/lvconvert-repair-transient.sh @@ -11,7 +11,7 @@ . lib/test -aux skip_if_mirror_recovery_broken +aux mirror_recovery_works || skip aux prepare_vg 5 lvcreate -aey --type mirror -m 3 --ignoremonitoring -L 1 -n 4way $vg