neutron/neutron/tests/functional/contrib/gate_hook.sh

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