Merge pull request #889 from cyphar/tests-provide-debug
tests: add debug information for failing tests
This commit is contained in:
commit
96c15e6e3c
|
@ -31,6 +31,11 @@ ROOT="$BATS_TMPDIR/runc"
|
|||
# Wrapper for runc.
|
||||
function runc() {
|
||||
run __runc "$@"
|
||||
|
||||
# Some debug information to make life easier. bats will only print it if the
|
||||
# test failed, in which case the output is useful.
|
||||
echo "runc $@ (status=$status):" >&2
|
||||
echo "$output" >&2
|
||||
}
|
||||
|
||||
# Raw wrapper for runc.
|
||||
|
|
Loading…
Reference in New Issue