patroni/debian/tests/acceptance
Michael Banck e0967b5a0f * debian/tests/acceptance: Simply set $PATH before running behave, drop the
$PATRONI_POSTGRESQL_BIN_DIR handling.
  * debian/patches/testsuite_honor_patroni_postgresql_bin_dir.patch: Removed,
    no longer needed.
2017-09-29 17:50:33 +02:00

21 lines
383 B
Bash
Executable file

#!/bin/sh
set -e
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
if [ $(id -u) -eq 0 ]
then
# required so that the postgres user can create files
chmod 777 .
chmod 777 features
SU='su postgres -p -c'
else
SU='bash -c'
fi
for PG_VERSION in /usr/lib/postgresql/*; do
$SU "PATH=/usr/lib/postgresql/$(basename ${PG_VERSION})/bin:$PATH behave"
done