aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2023-12-04 15:52:41 +0100
committerLoïc Hoguin <[email protected]>2023-12-04 15:53:09 +0100
commitbe7a7f46394443ed140ccdb1e9d0c0811ad64aa5 (patch)
tree495c24278083fd8f049a0ad8667aaaafecce1618
parentb7d4b575830a5668ea647d58827a84880db1806d (diff)
downloadranch-be7a7f46394443ed140ccdb1e9d0c0811ad64aa5.tar.gz
ranch-be7a7f46394443ed140ccdb1e9d0c0811ad64aa5.tar.bz2
ranch-be7a7f46394443ed140ccdb1e9d0c0811ad64aa5.zip
Upgrade test suite: always fetch all tags
On some CI/dev environments we don't have the full repository.
-rw-r--r--test/upgrade_SUITE.erl1
1 files changed, 1 insertions, 0 deletions
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"),