From 647c7c75f8f24e1f33047697b55fc79f35dfb134 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 19 Apr 2023 20:45:52 +0200 Subject: s3:tests: Create a temporary directory for test_veto_files.sh BUG: https://bugzilla.samba.org/show_bug.cgi?id=15360 Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison (cherry picked from commit b5a66840e3057cbff85fe6cd231310c4a9cfb34b) --- source3/script/tests/test_veto_files.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source3/script/tests/test_veto_files.sh b/source3/script/tests/test_veto_files.sh index 5ecfb53b8a4..e246e864b32 100755 --- a/source3/script/tests/test_veto_files.sh +++ b/source3/script/tests/test_veto_files.sh @@ -29,6 +29,10 @@ incdir=$(dirname "$0")/../../../testprogs/blackbox failed=0 +TMPDIR=${PREFIX_ABS}/$(basename "${0}") +mkdir -p "${TMPDIR}" || exit 1 +cd "${TMPDIR}" || exit 1 + # # Cleanup function. # @@ -51,7 +55,7 @@ smbclient_get_expect_error() { filename1="$1" expected_error="$2" - tmpfile=$PREFIX/smbclient_interactive_prompt_commands + tmpfile=${TMPDIR}/smbclient_interactive_prompt_commands cat >"$tmpfile" <"$tmpfile" <