1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

make udev teardown conditional on using udev

This commit is contained in:
Alasdair Kergon 2011-06-29 18:18:18 +00:00
parent 10e002742b
commit 5ffa914c59
2 changed files with 7 additions and 1 deletions

View File

@ -62,7 +62,7 @@ prepare_dmeventd() {
teardown_devs() {
# Delete any remaining dm/udev semaphores
dmsetup udevcomplete_all -y
teardown_udev_cookies
test -n "$PREFIX" && {
rm -rf $TESTDIR/dev/$PREFIX*

View File

@ -147,6 +147,12 @@ finish_udev_transaction() {
fi
}
teardown_udev_cookies() {
if test "$DM_UDEV_SYNCHRONISATION" = 1; then
dmsetup udevcomplete_all -y
fi
}
skip() {
touch SKIP_THIS_TEST
exit 200