Updates to Devstack Variables
The environment variable DEVSTACK_LOCAL_CONFIG can be set by the gate directly or through the gate_hook.sh script. This patch changes gate_hook.sh to append to that variable, instead of settting that variable, so not to overwrite any changes made by the gate startup scripts. Also, set the PYTHON environment variable to indicate python3 is used if indicated by the DEVSTACK_GATE variable. Change-Id: I28f2fc0bc0a97bf52fa2ba4851a90e87ef22e992
This commit is contained in:
parent
5348d7050a
commit
1ffb958c5d
@ -15,6 +15,8 @@
|
||||
set -ex
|
||||
|
||||
# Install barbican devstack integration
|
||||
export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican https://git.openstack.org/openstack/barbican"
|
||||
if [ -z "$DEVSTACK_LOCAL_CONFIG" ]; then
|
||||
export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican https://git.openstack.org/openstack/barbican"
|
||||
fi
|
||||
|
||||
$BASE/new/devstack-gate/devstack-vm-gate.sh
|
||||
|
@ -24,4 +24,9 @@ sudo pip install -r /opt/stack/new/barbican/test-requirements.txt
|
||||
|
||||
cd /opt/stack/new/barbican/functionaltests
|
||||
echo 'Running Functional Tests'
|
||||
sudo ./run_tests.sh $plugin
|
||||
|
||||
if [ "$DEVSTACK_GATE_USE_PYTHON3" = True ]; then
|
||||
export PYTHON=$(which python3 2>/dev/null)
|
||||
fi
|
||||
|
||||
sudo -E ./run_tests.sh $plugin
|
||||
|
Loading…
Reference in New Issue
Block a user