summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-07-16 00:46:16 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-07-16 12:14:46 +0100
commitdb7c7281e93d6f42c624bb361786fbb5a292f8c9 (patch)
tree8cb7cb7bf666b3a55b883c3a463189a3f8263617 /tests
parent51a525fdc552ff2d5f388c47b29c38784f2e5fa4 (diff)
test suite: t-report-fail: print $PWD as part of failure message
This is really helpful when debugging. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lib b/tests/lib
index e7ab334..3c04155 100644
--- a/tests/lib
+++ b/tests/lib
@@ -12,6 +12,7 @@ t-report-failure () {
rc=$1
cat <<END >&2
TEST FAILED
+cwd: $PWD
funcs: ${FUNCNAME[*]}
lines: ${BASH_LINENO[*]}
files: ${BASH_SOURCE[*]}