mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: replace skip_if_mirror_recovery_broken
Use mirror_recovery_works instead with easier to follow logic.
This commit is contained in:
parent
19fd6040c2
commit
31b1d06ddd
@ -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() {
|
||||
|
@ -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
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
. lib/test
|
||||
|
||||
aux skip_if_mirror_recovery_broken
|
||||
aux mirror_recovery_works || skip
|
||||
aux prepare_vg 5
|
||||
aux prepare_dmeventd
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user