mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 09:32:46 +00:00
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
This commit is contained in:
parent
d1a99c694b
commit
8976506406
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue