mirror of
https://github.com/sstephenson/bats.git
synced 2024-11-17 11:42:33 +01:00
report output content when test fails
This commit is contained in:
parent
040deba950
commit
86ca8dcba8
|
@ -37,6 +37,7 @@ run() {
|
||||||
set +e
|
set +e
|
||||||
output="$("$@" 2>&1)"
|
output="$("$@" 2>&1)"
|
||||||
status="$?"
|
status="$?"
|
||||||
|
echo "$output" | sed -e 's/^/ #output#/' > "$BATS_OUT"
|
||||||
IFS=$'\n' lines=($output)
|
IFS=$'\n' lines=($output)
|
||||||
[ -z "$e" ] || set -e
|
[ -z "$e" ] || set -e
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user