Browse Source

Upgrade test suite: always fetch all tags

On some CI/dev environments we don't have the full repository.
Loïc Hoguin 1 year ago
parent
commit
be7a7f4639
1 changed files with 1 additions and 0 deletions
  1. 1 0
      test/upgrade_SUITE.erl

+ 1 - 0
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"),