]> granicus.if.org Git - postgis/commitdiff
replace lazy sleep 5 with Darafei's more robust sleep suggestion
authorRegina Obe <lr@pcorp.us>
Thu, 4 Jan 2018 21:47:10 +0000 (21:47 +0000)
committerRegina Obe <lr@pcorp.us>
Thu, 4 Jan 2018 21:47:10 +0000 (21:47 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@16220 b70326c6-7e19-0410-871a-916f4a2858ee

ci/debbie/postgis_regress.sh

index e50d22ebcc457a7eb239015e19d19f8b7d5f0151..876cd0f8b1a207ea2f1e99bdf56d59e701fe8a02 100644 (file)
@@ -31,7 +31,8 @@ export PGIS_REG_TMPDIR=${WORKSPACE}/tmp/${POSTGIS_MAJOR_VERSION}_${POSTGIS_MINOR
 
 #adding this sleep so postgres instance has some grace period for starting
 #otherwise the attempt to drop the database, sometimes happes when pg is in middle of start
-sleep 5
+for i in {0..60}; do psql -c 'select;' && break; sleep 0.5; done
+
 export POSTGIS_REGRESS_DB="postgis_reg" # FIXME: tweak to avoid clashes
 psql -c "DROP DATABASE IF EXISTS $POSTGIS_REGRESS_DB"