Last change made all job runs end with success.
We need to save exit status in order to mark failed jobs. Change-Id: Ia7c91a5197fb7a989385fcbf91d274ee6b0940a3
This commit is contained in:
parent
49cb7abfc2
commit
c9fb525e34
@ -37,11 +37,14 @@
|
|||||||
export DEVSTACK_LOCAL_CONFIG="enable_plugin sahara git://git.openstack.org/openstack/sahara"
|
export DEVSTACK_LOCAL_CONFIG="enable_plugin sahara git://git.openstack.org/openstack/sahara"
|
||||||
|
|
||||||
function post_test_hook {
|
function post_test_hook {
|
||||||
|
local retval
|
||||||
cd /opt/stack/new/horizon
|
cd /opt/stack/new/horizon
|
||||||
sudo -H -u stack tox -e py27integration
|
sudo -H -u stack tox -e py27integration
|
||||||
|
retval=$?
|
||||||
if [ -d openstack_dashboard/test/integration_tests/integration_tests_screenshots/ ]; then
|
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/
|
cp -r openstack_dashboard/test/integration_tests/integration_tests_screenshots/ /home/jenkins/workspace/gate-horizon-dsvm-integration/
|
||||||
fi
|
fi
|
||||||
|
return $retval
|
||||||
}
|
}
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user