Use scripts from horizon repo in integration job test hooks

Change-Id: If73cf6fc32ff567d0232982411c4fb436c0d2b55
Depends-On: Ic2d60df846e876530662046d75c3e56e7841ba30
This commit is contained in:
Timur Sufiev 2016-01-05 00:48:47 +03:00
parent d2cfff4803
commit 1165748766

View File

@ -35,17 +35,18 @@
export DEVSTACK_GATE_INSTALL_TESTONLY=1
export DEVSTACK_GATE_NEUTRON=1
function pre_test_hook {
cd /opt/stack/new/horizon/tools/gate/integration
./pre_test_hook.sh
}
export -f pre_test_hook
function post_test_hook {
local retval
cd /opt/stack/new/horizon
sudo -H -u stack tox -e py27integration
retval=$?
if [ -d openstack_dashboard/test/integration_tests/integration_tests_screenshots/ ]; then
cp -r openstack_dashboard/test/integration_tests/integration_tests_screenshots/ /home/jenkins/workspace/gate-horizon-dsvm-integration/
fi
return $retval
cd /opt/stack/new/horizon/tools/gate/integration
./post_test_hook.sh
}
export -f post_test_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh