n8g-bagpipe: use pre/post gate hooks to fullstack job

Add pre/post gate hoos to the fullstack job.

The hooks are added in master branch in change
Ic2bd4e1ab47bbd4c5e086ae6f5529e4ae50e74d8 which this change depends on, and
don't need to be added in stable branches for which this experimental
job won't be enabled.

Depends-On: Ic2bd4e1ab47bbd4c5e086ae6f5529e4ae50e74d8
Change-Id: I21f0ca6c92252961db5d4c44e95cd2c737164ed5
This commit is contained in:
Thomas Morin 2017-04-26 17:19:24 +02:00
parent 1ae69b1f8c
commit f1e5b791db

View File

@ -77,11 +77,21 @@
export PROJECTS="openstack/networking-bagpipe $PROJECTS"
export DEVSTACK_LOCAL_CONFIG="enable_plugin networking-bagpipe git://git.openstack.org/openstack/networking-bagpipe"
function pre_test_hook {{
. $BASE/new/networking-bagpipe/devstack/pre_test_hook.sh fullstack
}}
export -f pre_test_hook
function gate_hook {{
bash -xe $BASE/new/networking-bagpipe/devstack/gate_hook.sh fullstack
}}
export -f gate_hook
function post_test_hook {{
. $BASE/new/networking-bagpipe/devstack/post_test_hook.sh fullstack
}}
export -f post_test_hook
export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-bagpipe/devstack/devstack-gate-rc
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh