mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
tests: validate passed LVM_TEST_DEVDIR
Quit test early if passed LVM_TEST_DEVDIR dir does not exists.
This commit is contained in:
parent
b09ac72624
commit
3f05e662bb
@ -60,6 +60,7 @@ DM_DEV_DIR="$TESTDIR/dev"
|
|||||||
LVM_SYSTEM_DIR="$TESTDIR/etc"
|
LVM_SYSTEM_DIR="$TESTDIR/etc"
|
||||||
mkdir "$LVM_SYSTEM_DIR" "$DM_DEV_DIR"
|
mkdir "$LVM_SYSTEM_DIR" "$DM_DEV_DIR"
|
||||||
if test -n "$LVM_TEST_DEVDIR" ; then
|
if test -n "$LVM_TEST_DEVDIR" ; then
|
||||||
|
test -d "$LVM_TEST_DEVDIR" || die "Test device directory LVM_TEST_DEVDIR=\"$LVM_TEST_DEVDIR\" is not valid."
|
||||||
DM_DEV_DIR=$LVM_TEST_DEVDIR
|
DM_DEV_DIR=$LVM_TEST_DEVDIR
|
||||||
else
|
else
|
||||||
mknod "$DM_DEV_DIR/testnull" c 1 3 || die "mknod failed"
|
mknod "$DM_DEV_DIR/testnull" c 1 3 || die "mknod failed"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user