improve error output for io-tests and with_tmp_db

This commit is contained in:
Wolfgang Walther
2020-12-03 22:32:07 +01:00
committed by Wolfgang Walther
parent 609c9aead8
commit 7d6d015822
2 changed files with 25 additions and 3 deletions
+7
View File
@@ -78,7 +78,14 @@ until pg_isready >> "$setuplog"; do
sleep 0.1
done
stopped=0
stop() {
# cleaning up once is enough; otherwise we get some errors
if [ $stopped -eq 1 ]; then
return
fi
stopped=1
log "Stopping the database cluster..."
pg_ctl stop -m i >> "$setuplog"