test: no args for helpers, fix recipe_* tests [ci skip]

This commit is contained in:
2023-09-23 23:57:52 +02:00
parent ce7b4733d7
commit f0560ca975
12 changed files with 45 additions and 78 deletions

View File

@ -53,7 +53,7 @@ teardown(){
run rm -rf "$ABRA_DIR/recipes/$TEST_RECIPE/foo"
assert_not_exists "$ABRA_DIR/recipes/$TEST_RECIPE/foo"
_checkout_recipe "$TEST_RECIPE"
_checkout_recipe
}
# bats test_tags=slow
@ -78,7 +78,7 @@ teardown(){
run rm -rf "$ABRA_DIR/recipes/$TEST_RECIPE/foo"
assert_not_exists "$ABRA_DIR/recipes/$TEST_RECIPE/foo"
_checkout_recipe "$TEST_RECIPE"
_checkout_recipe
}
@test "ensure recipe up to date if no --offline" {
@ -142,7 +142,7 @@ teardown(){
assert_failure
assert_output --partial 'no backup config for app'
_checkout_recipe "$TEST_RECIPE"
_checkout_recipe
}
@test "error if backup paths not configured" {
@ -153,7 +153,7 @@ teardown(){
assert_failure
assert_output --partial 'backup paths are empty for app?'
_checkout_recipe "$TEST_RECIPE"
_checkout_recipe
}
# bats test_tags=slow