Add shellmock_clean to setup method

This commit is contained in:
Stefan Zweifel 2020-10-11 10:40:48 +02:00
parent cdf7b74cbf
commit 4f0fc14d0c

View File

@ -33,9 +33,16 @@ setup() {
export INPUT_TAGGING_MESSAGE=""
export INPUT_PUSH_OPTIONS=""
export INPUT_SKIP_DIRTY_CHECK=false
skipIfNot "$BATS_TEST_DESCRIPTION"
if [ -z "$TEST_FUNCTION" ]; then
shellmock_clean
fi
}
teardown() {
if [ -z "$TEST_FUNCTION" ]; then
shellmock_clean
fi