diff --git a/test/teardown.bash b/test/teardown.bash new file mode 100644 index 0000000..fc7a98a --- /dev/null +++ b/test/teardown.bash @@ -0,0 +1,12 @@ +teardown() { + if ((BATS_ERROR_STATUS));then + echo "Failed with status $BATS_ERROR_STATUS" + if [[ "${output}" != "" ]];then + echo "Output at that time was:" + echo "$output" + else + echo "Output was empty" + fi + return $BATS_ERROR_STATUS + fi +}