[postgis-tickets] r16220 - replace lazy sleep 5 with Darafei's more robust sleep suggestion
Regina Obe
lr at pcorp.us
Thu Jan 4 01:47:10 PST 2018
Author: robe
Date: 2018-01-04 13:47:10 -0800 (Thu, 04 Jan 2018)
New Revision: 16220
Modified:
trunk/ci/debbie/postgis_regress.sh
Log:
replace lazy sleep 5 with Darafei's more robust sleep suggestion
Modified: trunk/ci/debbie/postgis_regress.sh
===================================================================
--- trunk/ci/debbie/postgis_regress.sh 2018-01-04 18:13:04 UTC (rev 16219)
+++ trunk/ci/debbie/postgis_regress.sh 2018-01-04 21:47:10 UTC (rev 16220)
@@ -31,7 +31,8 @@
#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"
More information about the postgis-tickets
mailing list