mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-19 14:04:17 +03:00
tests: hide expected error message
Test typically enables disabled device - so it mostly expects error target will be reloaded here - thus hide confusing message.
This commit is contained in:
parent
fd73b2b7b9
commit
904a02335f
@ -392,7 +392,7 @@ enable_dev() {
|
|||||||
init_udev_transaction
|
init_udev_transaction
|
||||||
for dev in "$@"; do
|
for dev in "$@"; do
|
||||||
local name=$(echo "$dev" | sed -e 's,.*/,,')
|
local name=$(echo "$dev" | sed -e 's,.*/,,')
|
||||||
dmsetup create -u "TEST-$name" "$name" "$name.table" || \
|
dmsetup create -u "TEST-$name" "$name" "$name.table" 2>/dev/null || \
|
||||||
dmsetup load "$name" "$name.table"
|
dmsetup load "$name" "$name.table"
|
||||||
# using device name (since device path does not exists yes with udev)
|
# using device name (since device path does not exists yes with udev)
|
||||||
dmsetup resume "$name"
|
dmsetup resume "$name"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user