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:
parent
10e002742b
commit
5ffa914c59
@ -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*
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user