diff --git a/extras.d/80-tempest.sh b/extras.d/80-tempest.sh index 74f4c60d10..c250518733 100644 --- a/extras.d/80-tempest.sh +++ b/extras.d/80-tempest.sh @@ -14,6 +14,8 @@ if is_service_enabled tempest; then echo_summary "Initializing Tempest" configure_tempest init_tempest + echo_summary "Installing Tempest Plugins" + install_tempest_plugins elif [[ "$1" == "stack" && "$2" == "post-extra" ]]; then # local.conf Tempest option overrides : diff --git a/lib/tempest b/lib/tempest index 5e40cb6e08..5e6d4e04a2 100644 --- a/lib/tempest +++ b/lib/tempest @@ -636,6 +636,12 @@ function install_tempest { pushd $TEMPEST_DIR tox --notest -efull PROJECT_VENV["tempest"]=${TEMPEST_DIR}/.tox/tempest + popd +} + +# install_tempest_plugins() - Install any specified plugins into the tempest venv +function install_tempest_plugins { + pushd $TEMPEST_DIR if [[ $TEMPEST_PLUGINS != 0 ]] ; then tox -evenv-tempest -- pip install $TEMPEST_PLUGINS fi