]> granicus.if.org Git - postgis/commitdiff
Report which upgrade failed
authorSandro Santilli <strk@kbt.io>
Sat, 7 Oct 2017 13:39:38 +0000 (13:39 +0000)
committerSandro Santilli <strk@kbt.io>
Sat, 7 Oct 2017 13:39:38 +0000 (13:39 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@15929 b70326c6-7e19-0410-871a-916f4a2858ee

utils/check_all_upgrades.sh

index d136336ce2778d00aafff972493986285fd5a0ba..0872d77023f08866f5b46c319a23cc36aec62ed8 100755 (executable)
@@ -17,7 +17,10 @@ sed 's/^postgis--\(.*\)\.sql/\1/' | while read fname; do
   if test -e postgis--${UPGRADE_PATH}.sql; then
     echo "Testing upgrade $UPGRADE_PATH"
     export RUNTESTFLAGS="-v --extension --upgrade-path=${UPGRADE_PATH}"
-    make -C ${BUILDDIR}/regress check || exit 1
+    make -C ${BUILDDIR}/regress check || {
+      echo "Upgrade $UPGRADE_PATH failed" >&2
+      exit 1
+    }
   else
     echo "Missing script for $UPGRADE_PATH upgrade" >&2
   fi