1
0
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:
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
}
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() {

View File

@ -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

View File

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

View File

@ -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