Support multiple supported versions in accpetance autopkgtest

This commit is contained in:
Michael Banck 2017-09-23 09:19:01 +02:00
parent b2e4df0651
commit fba7408141

View file

@ -5,7 +5,11 @@ set -e
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
PG_VERSION=$(/usr/share/postgresql-common/supported-versions default)
PG_VERSIONS=$(/usr/share/postgresql-common/supported-versions)
for PG_VERSION in ${PG_VERSIONS}; do
export PATH=/usr/lib/postgresql/${PG_VERSION}/bin:$PATH
done
if [ $(id -u) -eq 0 ]
then
@ -17,4 +21,4 @@ else
SU='bash -c'
fi
$SU "export PATH=/usr/lib/postgresql/${PG_VERSION}/bin:$PATH; behave"
$SU "export PATH; behave"