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:
parent
19fd6040c2
commit
31b1d06ddd
@ -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() {
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user