]> granicus.if.org Git - postgis/commitdiff
Make dropping of log files fully controlled by switch (#1376)
authorSandro Santilli <strk@keybit.net>
Wed, 14 Dec 2011 18:33:03 +0000 (18:33 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 14 Dec 2011 18:33:03 +0000 (18:33 +0000)
This is because hudson wants to report the regress.log in any case

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

regress/run_test

index 80bd015caf7b871d274aacc63e03bd8414160c85..304046e321d5bf02f5da5423c23960dbcb35bec8 100755 (executable)
@@ -48,6 +48,7 @@ fi
 mkdir -p ${TMPDIR}
 
 VERBOSE=0
+OPT_CLEAN=no
 OPT_DROP=yes
 OPT_CREATE=yes
 OPT_WITH_TOPO=no
@@ -443,6 +444,10 @@ while [ -n "$1" ]; do
                OPT_WITH_RASTER=yes
                shift
                continue
+       elif test "$1" = "--clean"; then
+               OPT_CLEAN=yes
+               shift
+               continue
        else
                break
        fi
@@ -640,7 +645,7 @@ echo "Run tests: $RUN"
 #echo "Successful: $SUCCESS"
 echo "Failed: $FAIL"
 
-if [ $FAIL -eq 0 ]; then
+if test x"$OPT_CLEAN" = "xyes"; then
        rm -f "${TMPDIR}/dumper.*"
        rm -f "${TMPDIR}/loader.*"
        rm -f "${TMPDIR}/regress_log"