From 8943cea13f72bff184bab296358eef75264cc02c Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sun, 23 Mar 2025 11:00:04 +0100 Subject: [PATCH] test: get latest via helper --- tests/integration/app_deploy.bats | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/integration/app_deploy.bats b/tests/integration/app_deploy.bats index 152f247d..27632bdb 100644 --- a/tests/integration/app_deploy.bats +++ b/tests/integration/app_deploy.bats @@ -108,8 +108,6 @@ teardown(){ # bats test_tags=slow @test "deploy latest commit if no published versions and no --chaos" { - latestCommit="$(git -C "$ABRA_DIR/recipes/$TEST_RECIPE" rev-parse --short HEAD)" - _remove_tags _wipe_env_version @@ -117,7 +115,7 @@ teardown(){ run $ABRA app deploy "$TEST_APP_DOMAIN" \ --no-input --no-converge-checks --offline assert_success - assert_output --partial "$latestCommit" + assert_output --partial "${_get_head_hash:0:8}" } # bats test_tags=slow