From 0344203209e78be04905d6ffdfbed8b3d5ac6eae Mon Sep 17 00:00:00 2001 From: p4u1 Date: Mon, 11 Mar 2024 14:21:29 +0100 Subject: [PATCH] properly reset recipe --- tests/integration/app_deploy.bats | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/app_deploy.bats b/tests/integration/app_deploy.bats index 285ff4da..59cdd481 100644 --- a/tests/integration/app_deploy.bats +++ b/tests/integration/app_deploy.bats @@ -16,6 +16,7 @@ teardown_file(){ setup(){ load "$PWD/tests/integration/helpers/common" _common_setup + _reset_recipe } teardown(){ @@ -140,7 +141,7 @@ teardown(){ assert_success run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" status - assert_output --partial 'behind 3' + assert_output --regexp 'behind .* 3 commits' threeCommitsBack="$(git -C "$ABRA_DIR/recipes/$TEST_RECIPE" rev-parse --short HEAD)"