From 7e8952a4d34873cc402a0e4a1e108ebe76fc6485 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sat, 14 Jun 2014 00:48:32 -0400 Subject: [PATCH] run-test now outputs source filename and line on failure --- test/run-test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/run-test b/test/run-test index 1528f56..9a8b7c0 100755 --- a/test/run-test +++ b/test/run-test @@ -39,9 +39,9 @@ assert() { test "$@" || { local -i code=$? - echo "assertion failed: $@" >&2 + echo "assertion failed: \`$@\` in ${BASH_SOURCE[1]}:${BASH_LINENO[0]}" return $code - } + } >&2 }