[postgis-tickets] r17343 - Give more info about SKIPs

Sandro Santilli strk at kbt.io
Thu Mar 14 11:49:42 PDT 2019


Author: strk
Date: 2019-03-14 11:49:42 -0700 (Thu, 14 Mar 2019)
New Revision: 17343

Modified:
   trunk/utils/check_all_upgrades.sh
Log:
Give more info about SKIPs

Modified: trunk/utils/check_all_upgrades.sh
===================================================================
--- trunk/utils/check_all_upgrades.sh	2019-03-14 18:49:29 UTC (rev 17342)
+++ trunk/utils/check_all_upgrades.sh	2019-03-14 18:49:42 UTC (rev 17343)
@@ -65,14 +65,15 @@
   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}"



More information about the postgis-tickets mailing list