test: tag/git helpers & refactor [ci skip]

This commit is contained in:
2023-09-23 23:19:49 +02:00
parent 575bfbb0fb
commit ce7b4733d7
8 changed files with 52 additions and 75 deletions

View File

@ -78,11 +78,7 @@ teardown(){
run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" checkout "$latestCommit"
assert_success
# NOTE(d1): nuke it to ensure clean git state
run rm -rf "$ABRA_DIR/recipes/$TEST_RECIPE"
assert_success
assert_not_exists "$ABRA_DIR/recipes/$TEST_RECIPE"
_fetch_recipe "$TEST_RECIPE"
_reset_recipe "$TEST_RECIPE"
}
@test "bail if unstaged changes and no --chaos" {