]> granicus.if.org Git - postgis/commitdiff
Rename the backend temp dir and drop with brute force
authorSandro Santilli <strk@keybit.net>
Fri, 24 Feb 2012 15:23:13 +0000 (15:23 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 24 Feb 2012 15:23:13 +0000 (15:23 +0000)
Avoids errors when no test writes anything in there (so no dir)

git-svn-id: http://svn.osgeo.org/postgis/trunk@9284 b70326c6-7e19-0410-871a-916f4a2858ee

regress/run_test

index 0168f93a3fa5b85f0b0b6f631cd34f3a33fe28d7..c4dea7cd3afe3b0225da6380f1732be78ff159d2 100755 (executable)
@@ -195,7 +195,7 @@ run_simple_test ()
        show_progress
 
        OUTFILE="${TMPDIR}/test_${RUN}_out"
-       BETMPDIR="${TMPDIR}/tmp/"
+       BETMPDIR="${TMPDIR}/pgis_reg_tmp/"
        TMPFILE="${BETMPDIR}/test_${RUN}_tmp"
        DIFFILE="${TMPDIR}/test_${RUN}_diff"
 
@@ -220,8 +220,7 @@ run_simple_test ()
                | sed 's/Self-intersection .*/Self-intersection/' \
                | sed 's/^ROLLBACK/COMMIT/' \
                > "${OUTFILE}"
-       rm -f "${BETMPDIR}/"* # should we keep these ?
-       rmdir "${BETMPDIR}" # should we keep this ?
+       rm -rf "${BETMPDIR}" # should we keep these ?
 
        if test x"$OPT_EXPECT" = "xyes"; then
                echo_inline " expected"