Add a gate_hook to gate-designate-devstack-dsvm

This allows Designate to correctly affect the gate environment variables
before a DevStack run.

Change-Id: I0c44229b2f67c9ea50e3f8786dccd8c50eb8e5e3
This commit is contained in:
Kiall Mac Innes 2014-07-19 16:27:39 +01:00
parent b56d1f75f1
commit 14b3f8f121
1 changed files with 6 additions and 5 deletions

View File

@ -19,13 +19,14 @@
export PROJECTS="openstack/designate $PROJECTS"
export PROJECTS="openstack/python-designateclient $PROJECTS"
function gate_hook {
cd /opt/stack/new/designate/contrib/devstack
./gate_hook.sh
}
export -f gate_hook
function pre_test_hook {
cd /opt/stack/new/designate/contrib/devstack
if [ -f gate-env.bash ]; then
source gate-env.bash
fi
./pre_test_hook.sh
}
export -f pre_test_hook