From: Sandro Santilli Date: Wed, 14 Dec 2011 18:33:03 +0000 (+0000) Subject: Make dropping of log files fully controlled by switch (#1376) X-Git-Tag: 2.0.0alpha1~457 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e16aeffbcd7ec33fe4af71dc682e61af57327222;p=postgis Make dropping of log files fully controlled by switch (#1376) 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 --- diff --git a/regress/run_test b/regress/run_test index 80bd015ca..304046e32 100755 --- a/regress/run_test +++ b/regress/run_test @@ -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"