Merge "Externalize hooks for neutron functional jobs"
This commit is contained in:
commit
1a2246823f
@ -24,15 +24,16 @@
|
|||||||
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
function gate_hook {{
|
||||||
|
bash -xe $BASE/new/neutron/neutron/tests/functional/contrib/gate_hook.sh
|
||||||
|
}}
|
||||||
|
export -f gate_hook
|
||||||
|
|
||||||
function post_test_hook {{
|
function post_test_hook {{
|
||||||
$BASE/new/devstack/unstack.sh
|
bash -xe $BASE/new/neutron/neutron/tests/functional/contrib/post_test_hook.sh
|
||||||
cd $BASE/new/neutron
|
|
||||||
# Run tests as the stack user to allow sudo+rootwrap.
|
|
||||||
sudo chown -R stack:stack $BASE/new/neutron
|
|
||||||
echo "Running neutron functional test suite"
|
|
||||||
sudo -H -u stack tox -e dsvm-functional
|
|
||||||
}}
|
}}
|
||||||
export -f post_test_hook
|
export -f post_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
Block a user