From d5593b69e0bc6e9304dd4b4a9a7f2dae8ea68f8d Mon Sep 17 00:00:00 2001 From: decentral1se Date: Wed, 20 Sep 2023 14:10:07 +0200 Subject: [PATCH] test: ensure 3 commits behind, ignore output on fail [ci skip] --- tests/integration/recipe_release.bats | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/integration/recipe_release.bats b/tests/integration/recipe_release.bats index 0b70ef53..451b7182 100644 --- a/tests/integration/recipe_release.bats +++ b/tests/integration/recipe_release.bats @@ -13,9 +13,12 @@ setup() { run git -C "$ABRA_DIR/recipes/matrix-synapse" reset --hard HEAD~3 assert_success + run git -C "$ABRA_DIR/recipes/matrix-synapse" status + assert_success + assert_output --partial 'behind 3' + run $ABRA recipe release matrix-synapse --no-input assert_failure - assert_output --regexp 'latest git tag .* are the same' run git -C "$ABRA_DIR/recipes/matrix-synapse" status refute_output --partial 'behind 3'