mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
test: fail on device create
Correct validation of prepared device and fail if the device can't be created.
This commit is contained in:
parent
8ab1d489f3
commit
3b6defcf1f
@ -874,7 +874,11 @@ prepare_devs() {
|
|||||||
wait
|
wait
|
||||||
finish_udev_transaction
|
finish_udev_transaction
|
||||||
|
|
||||||
if test -f CREATE_FAILED -a -n "$LVM_TEST_BACKING_DEVICE"; then
|
if test -f CREATE_FAILED ; then
|
||||||
|
if test -z "$LVM_TEST_BACKING_DEVICE"; then
|
||||||
|
echo "failed"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
LVM_TEST_BACKING_DEVICE=
|
LVM_TEST_BACKING_DEVICE=
|
||||||
rm -f BACKING_DEV CREATE_FAILED
|
rm -f BACKING_DEV CREATE_FAILED
|
||||||
prepare_devs "$@"
|
prepare_devs "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user