Improve test retry output
@@ -29,6 +29,7 @@ while ! docker_ version &> /dev/null; do
docker_ version # to hopefully get a useful error message
false
fi
+ echo >&2 -n .
sleep 2
done
@@ -33,9 +33,12 @@ while [ "$tried" -ge 0 -a "$(_request GET / --output /dev/null || echo $?)" = 7
if [ "$tried" -le 0 ]; then
echo >&2 "Unable to connect to Jetty. Aborting."
- exit 1
+ ( set -x && docker logs "$cid" ) >&2 || true
+ false
+
sleep "$duration"
@@ -20,9 +20,11 @@ while ! mongo_eval 'quit(db.stats().ok ? 0 : 1);' &> /dev/null; do
(( tries-- ))
if [ $tries -le 0 ]; then
echo >&2 'mongod failed to accept connections in a reasonable amount of time!'
mongo --eval 'db.stats();' # to hopefully get a useful error message
@@ -42,6 +42,7 @@ while ! echo 'SELECT 1' | mysql &> /dev/null; do
echo 'SELECT 1' | mysql # to hopefully get a useful error message
@@ -44,6 +44,7 @@ while ! echo 'SELECT 1' | mysql &> /dev/null; do
@@ -32,6 +32,7 @@ while ! echo 'SELECT 1' | psql &> /dev/null; do
echo >&2 'postgres failed to accept connections in a reasonable amount of time!'
echo 'SELECT 1' | psql # to hopefully get a useful error message
@@ -41,6 +41,7 @@ while ! echo 'SELECT 1' | psql &> /dev/null; do