1
0
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:
Petr Rockai 2011-02-09 17:57:14 +00:00
parent 94a0d58cd1
commit d79ce8aa05

View File

@ -31,8 +31,11 @@ trap 'set +vx; STACKTRACE; set -vx' ERR
trap 'aux teardown' EXIT # don't forget to clean up
export LVM_SYSTEM_DIR=$TESTDIR/etc
export DM_DEV_DIR=$TESTDIR/dev
mkdir $LVM_SYSTEM_DIR $DM_DEV_DIR $DM_DEV_DIR/mapper $TESTDIR/lib
DM_DEV_DIR=$TESTDIR/dev
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