Browse code

Fix installing tempest plugins

When running stack.sh locally on stable branches
with tempest enabled and TEMPEST_PLUGINS set,
devstack will try to fetch master branch of requirements
and that fails if branch is not tracked.

Change-Id: Ia1ae6869a8fede2af5cd7c875e0946b6a75eb518
Closes-Bug: #1820051

Vlad Gridin authored on 2019/03/14 22:40:55
Showing 1 changed files
... ...
@@ -674,7 +674,7 @@ function install_tempest_plugins {
674 674
     pushd $TEMPEST_DIR
675 675
     if [[ $TEMPEST_PLUGINS != 0 ]] ; then
676 676
         # The requirements might be on a different branch, while tempest & tempest plugins needs master requirements.
677
-        (cd $REQUIREMENTS_DIR && git show master:upper-constraints.txt) > u-c-m.txt
677
+        (cd $REQUIREMENTS_DIR && git show origin/master:upper-constraints.txt) > u-c-m.txt
678 678
         tox -evenv-tempest -- pip install -c u-c-m.txt $TEMPEST_PLUGINS
679 679
         echo "Checking installed Tempest plugins:"
680 680
         tox -evenv-tempest -- tempest list-plugins