mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
tests: move function to aux for reuse
This commit is contained in:
parent
adead83dc2
commit
e280f56dd3
@ -1467,6 +1467,14 @@ thin_pool_error_works_32() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
thin_restore_needs_more_volumes() {
|
||||||
|
case $("$LVM_TEST_THIN_RESTORE_CMD" -V) in
|
||||||
|
# With older version of thin-tool we got slightly more compact metadata
|
||||||
|
0.[0-6]*|0.7.0*) return 0 ;;
|
||||||
|
esac
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
udev_wait() {
|
udev_wait() {
|
||||||
pgrep udev >/dev/null || return 0
|
pgrep udev >/dev/null || return 0
|
||||||
which udevadm &>/dev/null || return 0
|
which udevadm &>/dev/null || return 0
|
||||||
|
@ -61,10 +61,7 @@ test -n "$LVM_TEST_THIN_RESTORE_CMD" || LVM_TEST_THIN_RESTORE_CMD=$(which thin_r
|
|||||||
aux have_thin 1 10 0 || skip
|
aux have_thin 1 10 0 || skip
|
||||||
|
|
||||||
BIG_DATA=""
|
BIG_DATA=""
|
||||||
case $("$LVM_TEST_THIN_RESTORE_CMD" -V) in
|
aux thin_restore_needs_more_volumes && BIG_DATA="generate_more_metadata"
|
||||||
# With older version of thin-tool we got slightly more compact metadata
|
|
||||||
0.[0-6]*|0.7.0*) BIG_DATA="generate_more_metadata" ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
aux prepare_dmeventd
|
aux prepare_dmeventd
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user