neutron-tempest-plugin/devstack/plugin.sh
Bernard Cafarelli 0bdc63d7c1
Only install plugin system-wide if INSTALL_TEMPEST is set
Similarly to main tempest installation check, we should only install
plugin on master branches (where INSTALL_TEMPEST is True), and not on
stable branches

Also drop all-plugin use for tox_envlist in stadium jobs that were using
it, it is deprecated and breaks with this new variable

Change-Id: Ia7238c2044053d77b559de544c22909c50e1a11f
Co-Authored-By: Ghanshyam Mann <gmann@ghanshyammann.com>
Closes-Bug: #1873776
2020-04-21 10:28:07 +02:00

26 lines
788 B
Bash

# Directory where this plugin.sh file is
NEUTRON_TEMPEST_PLUGIN_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source "${NEUTRON_TEMPEST_PLUGIN_DIR}/customize_image.sh"
# install_neutron_tempest_plugin
function install_neutron_tempest_plugin {
setup_dev_lib "neutron-tempest-plugin"
install_customize_image_tools
}
if [[ "$1" == "stack" ]]; then
case "$2" in
install)
if [[ "$INSTALL_TEMPEST" == "True" ]]; then
echo_summary "Installing neutron-tempest-plugin"
install_neutron_tempest_plugin
fi
;;
test-config)
echo_summary "Configuring neutron-tempest-plugin tempest options"
configure_advanced_image
configure_flavor_for_advanced_image
esac
fi