1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: respect LVM_TEST_DIR

Check for empty LVM_TEST_DIR
(regression from 48275c7836)
This commit is contained in:
Zdenek Kabelac 2015-02-12 10:33:48 +01:00
parent d95c6154ff
commit 65d95caad5

View File

@ -29,7 +29,7 @@ TESTOLDPWD=$(pwd)
COMMON_PREFIX="LVMTEST"
PREFIX="${COMMON_PREFIX}$$"
if test -n "$LVM_TEST_DIR"; then LVM_TEST_DIR=$TMPDIR; fi
if test -z "$LVM_TEST_DIR"; then LVM_TEST_DIR=$TMPDIR; fi
TESTDIR=$(mkdtemp "${LVM_TEST_DIR:-/tmp}" "$PREFIX.XXXXXXXXXX") || \
die "failed to create temporary directory in ${LVM_TEST_DIR:-$TESTOLDPWD}"
RUNNING_DMEVENTD=$(pgrep dmeventd) || true