From 734d9791f817693f1d6f396b34d105894aacb16c Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 29 May 2023 14:17:43 +0200 Subject: [PATCH] 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. --- test/lib/inittest.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/lib/inittest.sh b/test/lib/inittest.sh index 9f2713062..c41f4c5b4 100644 --- a/test/lib/inittest.sh +++ b/test/lib/inittest.sh @@ -106,7 +106,7 @@ else fi cd "$TESTDIR" -mkdir lib +mkdir lib tmp # Setting up symlink from $i to $TESTDIR/lib 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_DEV_DIR="$TESTDIR/dev" LVM_SYSTEM_DIR="$TESTDIR/etc" +TMPDIR="$TESTDIR/tmp" # 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_DEBUG_WITH_LINE_NUMBERS=${DM_DEBUG_WITH_LINE_NUMBERS:-1}