run-test now outputs source filename and line on failure
parent
3ddf7f00e8
commit
7e8952a4d3
|
@ -39,9 +39,9 @@ assert()
|
||||||
{
|
{
|
||||||
test "$@" || {
|
test "$@" || {
|
||||||
local -i code=$?
|
local -i code=$?
|
||||||
echo "assertion failed: $@" >&2
|
echo "assertion failed: \`$@\` in ${BASH_SOURCE[1]}:${BASH_LINENO[0]}"
|
||||||
return $code
|
return $code
|
||||||
}
|
} >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue