diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-05-31 17:37:33 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-06-07 13:55:11 +0100 |
commit | 3f112ef280d8d10152089fcae772f5edd707817c (patch) | |
tree | b1424a609878656ef0cc81c2bc8c77a8d58d8b52 /tests | |
parent | 2f3ee9be4c7e6a8685113d8d027811d3db3cd573 (diff) |
Test suite: set -o pipefail, in lib
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2,6 +2,7 @@ exec 2>&1 set -x +set -o pipefail . tests/lib-core @@ -43,8 +44,11 @@ END t-expect-fail () { local mpat="$1"; shift + set +o pipefail LC_MESSAGES=C "$@" 2>&1 | tee $tmp/t.output - test ${PIPESTATUS[0]} != 0 + local gotstatus=${PIPESTATUS[0]} + set -o pipefail + test $gotstatus != 0 egrep "$mpat" $tmp/t.output ||false } |