[lvm-devel] master - test: Run in /tmp if LVM_TEST_DIR is unset.
Petr Rockai
mornfall at fedoraproject.org
Thu Feb 5 13:41:29 UTC 2015
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=48275c78361578672f5f3f5c29737404cf159f6d
Commit: 48275c78361578672f5f3f5c29737404cf159f6d
Parent: 246fecee277cbabe6d377b80c43dee22485e3872
Author: Petr Rockai <prockai at redhat.com>
AuthorDate: Fri Jun 27 23:16:49 2014 +0200
Committer: Petr Rockai <prockai at redhat.com>
CommitterDate: Thu Feb 5 13:47:18 2015 +0100
test: Run in /tmp if LVM_TEST_DIR is unset.
---
test/lib/inittest.sh | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/test/lib/inittest.sh b/test/lib/inittest.sh
index 7f49b02..5b3ad87 100644
--- a/test/lib/inittest.sh
+++ b/test/lib/inittest.sh
@@ -29,7 +29,8 @@ TESTOLDPWD=$(pwd)
COMMON_PREFIX="LVMTEST"
PREFIX="${COMMON_PREFIX}$$"
-TESTDIR=$(mkdtemp "${LVM_TEST_DIR:-$TESTOLDPWD}" "$PREFIX.XXXXXXXXXX") || \
+if test -n "$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
More information about the lvm-devel
mailing list