run-test now outputs source filename and line on failure

monad
Mike Gerwitz 2014-06-14 00:48:32 -04:00
parent 3ddf7f00e8
commit 7e8952a4d3
1 changed files with 2 additions and 2 deletions

View File

@ -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
}