Skip to contentSkip to conversation

master - tests: respect LVM_TEST_DIR

PATCH Zdenek Kabelac 1 participant 1 message Feb 12, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=65d95caad5cb7410286b1c2b189cfedb69fcbe7d
Commit:        65d95caad5cb7410286b1c2b189cfedb69fcbe7d
Parent:        d95c6154ffe19e629a1403b45f6e8371f9dc6d70
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Feb 12 10:33:48 2015 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Feb 12 15:38:50 2015 +0100

tests: respect LVM_TEST_DIR

Check for empty LVM_TEST_DIR
(regression from 48275c78361578672f5f3f5c29737404cf159f6d)

---
 test/lib/inittest.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
test/lib/inittest.sh +1 -1
index 5b3ad87..e3d874b 100644
@@ -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