1e79c9a85e
Infra jobs support hooks to customize behavior. This change adds scripts that are intended to be called by the neutron-dsvm-functional jobs as hooks. Defining hook behavior in-tree instead of directly in the job definition has the advantage of allowing changes in hook behavior to be tested before merge. The gate_hook.sh script added by this change installs a rootwrap filter to allow functional tests to destroy python processes that they have spawned. The tests use the python executable provided by their tox env, and the default rootwrap configuration does not support killing processes launched by non-system python executables. This change will have to merge to master and stable/icehouse before the supporting infra config change can be merged: https://review.openstack.org/#/c/116458/ Partial-bug: #1360658 Change-Id: Idcc6195f91fac833c14892f27fb793048ef964b9
18 lines
601 B
Bash
18 lines
601 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
$BASE/new/devstack-gate/devstack-vm-gate.sh
|
|
|
|
# Ideally devstack would only install dependencies
|
|
# rather than starting services, but for now unstack is
|
|
# a cheap way of accomplishing the same result.
|
|
$BASE/new/devstack/unstack.sh
|
|
|
|
# Add a rootwrap filter to support test-only
|
|
# configuration (e.g. a KillFilter for processes that
|
|
# use the python installed in a tox env).
|
|
FUNC_FILTER=$BASE/new/neutron/neutron/tests/functional/contrib/filters.template
|
|
sed -e "s+\$BASE_PATH+$BASE/new/neutron/.tox/dsvm-functional+" \
|
|
$FUNC_FILTER > /etc/neutron/rootwrap.d/functional.filters
|