]> granicus.if.org Git - postgis/commitdiff
Give more info about SKIPs
authorSandro Santilli <strk@kbt.io>
Thu, 14 Mar 2019 18:49:42 +0000 (18:49 +0000)
committerSandro Santilli <strk@kbt.io>
Thu, 14 Mar 2019 18:49:42 +0000 (18:49 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@17343 b70326c6-7e19-0410-871a-916f4a2858ee

utils/check_all_upgrades.sh

index c3547b040cd28575694690392831a64fd88e4789..5363650c2f0f9edc7c3f61d5e9902cde8dbcaf0a 100755 (executable)
@@ -65,14 +65,15 @@ for EXT in ${INSTALLED_EXTENSIONS}; do
   files=`'ls' ${EXT}--* | grep -v -- '--.*--' | sed "s/^${EXT}--\(.*\)\.sql/\1/"`
   for fname in unpackaged $files; do
     from_version="$fname"
+    UPGRADE_PATH="${from_version}--${to_version}"
     # only consider versions older than ${to_version}
     if test $fname != "unpackaged"; then # unpackaged is always older
       cmp=`semver_compare "${from_version}" "${to_version}"`
       if test $cmp -ge 0; then
+        echo "SKIP: upgrade $UPGRADE_PATH (target is not newer than source)"
         continue
       fi
     fi
-    UPGRADE_PATH="${from_version}--${to_version}"
     if test -e ${EXT}--${UPGRADE_PATH}.sql; then
       echo "Testing ${EXT} upgrade $UPGRADE_PATH"
       export RUNTESTFLAGS="-v --extension --upgrade-path=${UPGRADE_PATH}"