Update patrole tempest devstack gate to use pre_test_hook.
Change-Id: I13b2f830919ab025a6b5739c7f505a477246e457
This commit is contained in:
parent
2be4ca1e0d
commit
e780e5dd37
|
@ -21,7 +21,7 @@
|
||||||
export DEVSTACK_GATE_TEMPEST=1
|
export DEVSTACK_GATE_TEMPEST=1
|
||||||
export DEVSTACK_GATE_NEUTRON=1
|
export DEVSTACK_GATE_NEUTRON=1
|
||||||
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
|
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
|
||||||
export DEVSTACK_GATE_TEMPEST_REGEX=patrole
|
export DEVSTACK_GATE_TEMPEST_REGEX=patrole_tempest_plugin
|
||||||
|
|
||||||
export DEVSTACK_LOCAL_CONFIG="enable_plugin patrole git://git.openstack.org/openstack/patrole"
|
export DEVSTACK_LOCAL_CONFIG="enable_plugin patrole git://git.openstack.org/openstack/patrole"
|
||||||
|
|
||||||
|
@ -32,10 +32,14 @@
|
||||||
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function post_test_hook {{
|
# Keep localrc to be able to set some vars in pre_test_hook
|
||||||
bash -xe $BASE/new/patrole/patrole_tempest_plugin/tests/contrib/post_test_hook.sh {rbac-role}
|
export KEEP_LOCALRC=1
|
||||||
|
|
||||||
|
function pre_test_hook {{
|
||||||
|
source $BASE/new/patrole/contrib/pre_test_hook.sh \
|
||||||
|
{rbac-role}
|
||||||
}}
|
}}
|
||||||
export -f post_test_hook
|
export -f pre_test_hook
|
||||||
|
|
||||||
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||||
./safe-devstack-vm-gate-wrap.sh
|
./safe-devstack-vm-gate-wrap.sh
|
||||||
|
|
Loading…
Reference in New Issue