* debian/tests/acceptance: Run tests for each available Postgres version.

This commit is contained in:
Michael Banck 2017-09-29 16:27:16 +02:00
parent 3049bb02d6
commit eba7f46987

View file

@ -5,10 +5,6 @@ set -e
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
for PG_VERSION in /usr/lib/postgresql/*; do
export PATRONI_POSTGRESQL_BIN_DIR=/usr/lib/postgresql/$(basename ${PG_VERSION})/bin
done
if [ $(id -u) -eq 0 ]
then
# required so that the postgres user can create files
@ -19,4 +15,6 @@ else
SU='bash -c'
fi
$SU "export PATRONI_POSTGRESQL_BIN_DIR; behave"
for PG_VERSION in /usr/lib/postgresql/*; do
$SU "export PATRONI_POSTGRESQL_BIN_DIR=/usr/lib/postgresql/$(basename ${PG_VERSION})/bin; behave"
done