Create teardown.bash
From https://github.com/bats-core/bats-core/issues/199
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user