debian/tests/acceptance: set -o pipefail so failures aren't masked by ts.

This commit is contained in:
Christoph Berg 2021-12-22 13:48:02 +01:00
parent 8b99f7607a
commit 8e4a470fe9
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View file

@ -5,6 +5,8 @@ patroni (2.1.2-2) UNRELEASED; urgency=medium
* debian/py3dist-overrides: Tell dh_python3 to find "ipaddress" in python3
>= 3.3.
* debian/tests/control: Mark zookeeper test as skip-not-installable.
* debian/tests/acceptance: `set -o pipefail` so failures aren't masked by
`ts`.
-- Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org> Fri, 03 Dec 2021 17:13:32 +0100

View file

@ -48,7 +48,7 @@ esac
set -x
for PG_VERSION in /usr/lib/postgresql/*; do
$SU "ETCD_UNSUPPORTED_ARCH=$ETCD_ARCH DCS=$DCS PATH=/usr/lib/postgresql/$(basename \
$SU "set -o pipefail; ETCD_UNSUPPORTED_ARCH=$ETCD_ARCH DCS=$DCS PATH=/usr/lib/postgresql/$(basename \
${PG_VERSION})/bin:$PATH behave | ts" || \
(for file in $(ls features/output/*_failed/*); do echo "$file:"; cat $file; done && exit 1)
done