From 897650640607d12f73f1c939dc9820c0fb74b9f4 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 24 Feb 2012 20:17:38 +0000 Subject: [PATCH] Make sure the created backend temp directory is world writeable git-svn-id: http://svn.osgeo.org/postgis/trunk@9290 b70326c6-7e19-0410-871a-916f4a2858ee --- regress/run_test | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/regress/run_test b/regress/run_test index 94ed00015..856c23952 100755 --- a/regress/run_test +++ b/regress/run_test @@ -199,9 +199,8 @@ run_simple_test () TMPFILE="${BETMPDIR}/test_${RUN}_tmp" DIFFILE="${TMPDIR}/test_${RUN}_diff" - if [ ! -d "${BETMPDIR}" ]; then - mkdir ${BETMPDIR} - fi + mkdir -p "${BETMPDIR}" + chmod 777 "${BETMPDIR}" # Use intermediate file to prevent MingW buffering problems ${PSQL} -v "VERBOSITY=terse" -v "tmpfile='${TMPFILE}'" -tXA < "${_sql}" ${DB} 2>&1 \ @@ -225,9 +224,7 @@ run_simple_test () | sed 's/^ROLLBACK/COMMIT/' \ > "${OUTFILE}" - if [ -d "${BETMPDIR}" ]; then - rm -rf "${BETMPDIR}" # should we keep these ? - fi + rm -rf "${BETMPDIR}" # should we keep these ? if test x"$OPT_EXPECT" = "xyes"; then echo_inline " expected" -- 2.50.1