mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
Allow overriding the DM_DEV_DIR used by the test suite (fixes BZ 672796). Use
like this: # LVM_TEST_DEVDIR=/tmp/dev make check
This commit is contained in:
parent
94a0d58cd1
commit
d79ce8aa05
@ -31,8 +31,11 @@ trap 'set +vx; STACKTRACE; set -vx' ERR
|
|||||||
trap 'aux teardown' EXIT # don't forget to clean up
|
trap 'aux teardown' EXIT # don't forget to clean up
|
||||||
|
|
||||||
export LVM_SYSTEM_DIR=$TESTDIR/etc
|
export LVM_SYSTEM_DIR=$TESTDIR/etc
|
||||||
export DM_DEV_DIR=$TESTDIR/dev
|
DM_DEV_DIR=$TESTDIR/dev
|
||||||
mkdir $LVM_SYSTEM_DIR $DM_DEV_DIR $DM_DEV_DIR/mapper $TESTDIR/lib
|
test -n "$LVM_TEST_DEVDIR" && DM_DEV_DIR="$LVM_TEST_DEVDIR"
|
||||||
|
export DM_DEV_DIR
|
||||||
|
mkdir $LVM_SYSTEM_DIR $TESTDIR/lib
|
||||||
|
mkdir -p $DM_DEV_DIR $DM_DEV_DIR/mapper
|
||||||
|
|
||||||
cd $TESTDIR
|
cd $TESTDIR
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user