1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

tests: replace skip_if_mirror_recovery_broken

Use mirror_recovery_works instead with easier to follow logic.
This commit is contained in:
Zdenek Kabelac 2014-03-17 16:32:42 +01:00
parent 19fd6040c2
commit 31b1d06ddd
4 changed files with 7 additions and 6 deletions

View File

@ -641,9 +641,10 @@ api() {
"$abs_top_builddir/test/api/wrapper" "$@" && rm -f debug.log "$abs_top_builddir/test/api/wrapper" "$@" && rm -f debug.log
} }
skip_if_mirror_recovery_broken() { mirror_recovery_works() {
if test `uname -r` = 3.3.4-5.fc17.i686; then skip; fi case $(uname -r) in
if test `uname -r` = 3.3.4-5.fc17.x86_64; then skip; fi 3.3.4-5.fc17.i686|3.3.4-5.fc17.x86_64) return 1 ;;
esac
} }
raid456_replace_works() { raid456_replace_works() {

View File

@ -12,7 +12,7 @@
. lib/test . lib/test
which mkfs.ext2 || skip which mkfs.ext2 || skip
aux skip_if_mirror_recovery_broken aux mirror_recovery_works || skip
aux prepare_dmeventd aux prepare_dmeventd
aux prepare_vg 5 aux prepare_vg 5

View File

@ -11,7 +11,7 @@
. lib/test . lib/test
aux skip_if_mirror_recovery_broken aux mirror_recovery_works || skip
aux prepare_vg 5 aux prepare_vg 5
aux prepare_dmeventd aux prepare_dmeventd

View File

@ -11,7 +11,7 @@
. lib/test . lib/test
aux skip_if_mirror_recovery_broken aux mirror_recovery_works || skip
aux prepare_vg 5 aux prepare_vg 5
lvcreate -aey --type mirror -m 3 --ignoremonitoring -L 1 -n 4way $vg lvcreate -aey --type mirror -m 3 --ignoremonitoring -L 1 -n 4way $vg