Merge pull request #889 from cyphar/tests-provide-debug

tests: add debug information for failing tests
This commit is contained in:
Mrunal Patel 2016-06-13 16:04:44 -07:00 committed by GitHub
commit 96c15e6e3c
1 changed files with 5 additions and 0 deletions

View File

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