Browse code

Merge "Support TEMPEST_BRANCH with tag name"

Zuul authored on 2020/01/31 05:32:48
Showing 1 changed files
... ...
@@ -690,6 +690,11 @@ function install_tempest {
690 690
     git_clone $TEMPEST_REPO $TEMPEST_DIR $TEMPEST_BRANCH
691 691
     pip_install 'tox!=2.8.0'
692 692
     pushd $TEMPEST_DIR
693
+    # NOTE(gmann): checkout the TEMPEST_BRANCH in case TEMPEST_BRANCH
694
+    # is tag name not master. git_clone would not checkout tag because
695
+    # TEMPEST_DIR already exist until RECLONE is true.
696
+    git checkout $TEMPEST_BRANCH
697
+
693 698
     tox -r --notest -efull
694 699
     # NOTE(mtreinish) Respect constraints in the tempest full venv, things that
695 700
     # are using a tox job other than full will not be respecting constraints but