* debian/tests/acceptance: Use $PATRONI_POSTGRESQL_BIN_DIR instead of $PATH.

This commit is contained in:
Michael Banck 2017-09-29 15:10:02 +02:00
parent b4ce563666
commit 3e3cf26a97

View file

@ -5,10 +5,9 @@ set -e
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
PG_VERSIONS=$(/usr/share/postgresql-common/supported-versions)
for PG_VERSION in ${PG_VERSIONS}; do
export PATH=/usr/lib/postgresql/${PG_VERSION}/bin:$PATH
for PG_VERSION in /usr/lib/postgresql/*; do
export PATH=/usr/lib/postgresql/$(basename ${PG_VERSION})/bin:$PATH
export PATRONI_POSTGRESQL_BIN_DIR=/usr/lib/postgresql/$(basename ${PG_VERSION})/bin
done
if [ $(id -u) -eq 0 ]
@ -21,4 +20,4 @@ else
SU='bash -c'
fi
$SU "export PATH; behave || cat features/output/*/patroni_postgres*.log"
$SU "export PATH PATRONI_POSTGRESQL_BIN_DIR; echo PATH: $PATH; echo -n pg_ctl:; which pg_ctl; echo .; ls /usr/lib/postgresql/*/bin/; behave"