summaryrefslogtreecommitdiffstats
path: root/test/lib/test.sh
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2011-06-30 00:57:29 +0000
committerAlasdair Kergon <agk@redhat.com>2011-06-30 00:57:29 +0000
commit1a3d96757ef3f4b0ee0728f46bfc76298206b8a9 (patch)
treec3b5cb32373d5fea82e82d6bdce9354f29bd03fb /test/lib/test.sh
parent14e012871f5eefd005df97b3c899f59c4e9acd32 (diff)
downloadlvm2-1a3d96757ef3f4b0ee0728f46bfc76298206b8a9.tar.gz
lvm2-1a3d96757ef3f4b0ee0728f46bfc76298206b8a9.tar.xz
lvm2-1a3d96757ef3f4b0ee0728f46bfc76298206b8a9.zip
test attempt to remove stray loop devs
Diffstat (limited to 'test/lib/test.sh')
-rw-r--r--test/lib/test.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lib/test.sh b/test/lib/test.sh
index ba1391b7..b16c1d94 100644
--- a/test/lib/test.sh
+++ b/test/lib/test.sh
@@ -19,11 +19,13 @@ unset CDPATH
. lib/utils
OLDPWD="`pwd`"
-PREFIX="LVMTEST$$"
+COMMON_PREFIX="LVMTEST"
+PREFIX="${COMMON_PREFIX}$$"
TESTDIR=$(mkdtemp ${LVM_TEST_DIR-$(pwd)} $PREFIX.XXXXXXXXXX) \
|| { echo "failed to create temporary directory in ${LVM_TEST_DIR-$(pwd)}"; exit 1; }
+export COMMON_PREFIX
export PREFIX
export TESTDIR