mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: tmp dir inside test dir
Keep even temporary files within testing dir so generated files are not left behind in system's /tmp directory.
This commit is contained in:
parent
4d64838048
commit
734d9791f8
@ -106,7 +106,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$TESTDIR"
|
cd "$TESTDIR"
|
||||||
mkdir lib
|
mkdir lib tmp
|
||||||
|
|
||||||
# Setting up symlink from $i to $TESTDIR/lib
|
# Setting up symlink from $i to $TESTDIR/lib
|
||||||
test -n "${abs_top_builddir+varset}" && \
|
test -n "${abs_top_builddir+varset}" && \
|
||||||
@ -118,6 +118,7 @@ find "$TESTOLDPWD/lib" ! \( -name '*.sh' -o -name '*.[cdo]' \
|
|||||||
DM_DEFAULT_NAME_MANGLING_MODE=none
|
DM_DEFAULT_NAME_MANGLING_MODE=none
|
||||||
DM_DEV_DIR="$TESTDIR/dev"
|
DM_DEV_DIR="$TESTDIR/dev"
|
||||||
LVM_SYSTEM_DIR="$TESTDIR/etc"
|
LVM_SYSTEM_DIR="$TESTDIR/etc"
|
||||||
|
TMPDIR="$TESTDIR/tmp"
|
||||||
# abort on the internal dm errors in the tests (allowing test user override)
|
# abort on the internal dm errors in the tests (allowing test user override)
|
||||||
DM_ABORT_ON_INTERNAL_ERRORS=${DM_ABORT_ON_INTERNAL_ERRORS:-1}
|
DM_ABORT_ON_INTERNAL_ERRORS=${DM_ABORT_ON_INTERNAL_ERRORS:-1}
|
||||||
DM_DEBUG_WITH_LINE_NUMBERS=${DM_DEBUG_WITH_LINE_NUMBERS:-1}
|
DM_DEBUG_WITH_LINE_NUMBERS=${DM_DEBUG_WITH_LINE_NUMBERS:-1}
|
||||||
|
Loading…
Reference in New Issue
Block a user