Support multiple supported versions in accpetance autopkgtest
This commit is contained in:
parent
b2e4df0651
commit
fba7408141
8
debian/tests/acceptance
vendored
8
debian/tests/acceptance
vendored
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue