debian/tests/acceptance: Add ### PostgreSQL ### markers for Jenkins

This commit is contained in:
Christoph Berg 2022-08-26 13:43:57 +02:00
parent e15c7c0b60
commit 6870df7681

View file

@ -25,7 +25,7 @@ else
fi
# clean up afterwards
trap 'rm -f /tmp/pgpass?; if [ $(id -u) -eq 0 ] && [ -x /etc/init.d/zookeeper ]; then /etc/init.d/zookeeper stop; fi' 0 2 3 15
trap 'rm -f /tmp/pgpass?; if [ $(id -u) -eq 0 ] && [ -x /etc/init.d/zookeeper ]; then /etc/init.d/zookeeper stop; fi' EXIT
# set ETCD_ARCH for ETCD_UNSUPPORTED_ARCH
# see https://github.com/etcd-io/etcd/blob/master/Documentation/op-guide/supported-platform.md#current-support
@ -35,10 +35,7 @@ case $DEB_HOST_ARCH in
arm64)
ETCD_ARCH=arm64
;;
armel)
ETCD_ARCH=arm
;;
armhf)
armel|armhf)
ETCD_ARCH=arm
;;
i386)
@ -48,6 +45,7 @@ esac
set -x
for PG_VERSION in $(ls -1r /usr/lib/postgresql/); do
echo "### PostgreSQL $PG_VERSION acceptance-$DCS ###"
if [ "${PG_VERSION}" == "10" ]; then
SKIP=--tags=-skip
else
@ -57,4 +55,5 @@ for PG_VERSION in $(ls -1r /usr/lib/postgresql/); do
PATH=/usr/lib/postgresql/${PG_VERSION}/bin:$PATH \
behave ${SKIP} | ts" || \
(for file in $(ls features/output/*_failed/*); do echo "$file:"; cat $file; done && exit 1)
echo "### End $PG_VERSION acceptance-$DCS ###"
done