diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -7,6 +7,20 @@ set -o pipefail . tests/lib-core . tests/lib-restricts +t-report-failure () { + set +x + rc=$1 + cat <<END >&2 +TEST FAILED +funcs: ${FUNCNAME[*]} +lines: ${BASH_LINENO[*]} +files: ${BASH_SOURCE[*]} +END + exit 16 +} + +trap 'test $? = 0 || t-report-failure' EXIT + t-set-intree : ${DGIT_TEST_DEBUG=-D} |