From 8e4a470fe96b9923712c8bc8f6f8e97d959f8e65 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Wed, 22 Dec 2021 13:48:02 +0100 Subject: [PATCH] debian/tests/acceptance: `set -o pipefail` so failures aren't masked by `ts`. --- debian/changelog | 2 ++ debian/tests/acceptance | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index d9db4de..f8d6949 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Fri, 03 Dec 2021 17:13:32 +0100 diff --git a/debian/tests/acceptance b/debian/tests/acceptance index 3ba7cee..80578a4 100755 --- a/debian/tests/acceptance +++ b/debian/tests/acceptance @@ -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