Update patrole tempest devstack gate to use pre_test_hook.
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_NEUTRON=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 OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
- function post_test_hook {{
- bash -xe $BASE/new/patrole/patrole_tempest_plugin/tests/contrib/post_test_hook.sh {rbac-role}
+ # Keep localrc to be able to set some vars in pre_test_hook
+ 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
./safe-devstack-vm-gate-wrap.sh
