From be7a7f46394443ed140ccdb1e9d0c0811ad64aa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 4 Dec 2023 15:52:41 +0100 Subject: Upgrade test suite: always fetch all tags On some CI/dev environments we don't have the full repository. --- test/upgrade_SUITE.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/upgrade_SUITE.erl b/test/upgrade_SUITE.erl index c70e1ce..e325f2e 100644 --- a/test/upgrade_SUITE.erl +++ b/test/upgrade_SUITE.erl @@ -105,6 +105,7 @@ do_stop(Example) -> %% we use the tag before that as a starting point. Otherwise %% we use the most recent tag. do_use_ranch_previous(Example) -> + _ = do_exec_log("git fetch --tags"), %% Ensure we have all tags. TagsOutput = do_exec_log("git tag | tr - \\~ | sort -V | tr \\~ -"), Tags = string:lexemes(TagsOutput, "\n"), DescribeOutput = do_exec_log("git describe --exact-match"), -- cgit v1.2.3