tests: add debug information for failing tests
bats doesn't automatically print the entirety of $output when an error has occurred in a test. This makes debugging much harder, so add to the runc wrapper some more debug information to make maintainers' lives easier. Signed-off-by: Aleksa Sarai <asarai@suse.de>
This commit is contained in:
parent
ab10b6068b
commit
7222ba6587
|
@ -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