test: ensure 3 commits behind, ignore output on fail [ci skip]

This commit is contained in:
decentral1se 2023-09-20 14:10:07 +02:00
parent 0be532692d
commit d5593b69e0
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 4 additions and 1 deletions

View File

@ -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'