fix integration test screen shots
Looking at sahara dashboard as model for possibly adding integration tests to the app-catalog. Noticed that the screen shots were not being saved. Adding the +e to the script allows the screenshot copy to actually work. The logs from patch set 7 show this working. In that patch set I forced a screenshot even tho the test was successful. Change-Id: Iee393a40e8a29943203cb59f6ed669db8f570d4a
This commit is contained in:
parent
906eba4a1b
commit
27f02dbf33
|
@ -2,4 +2,4 @@
|
|||
|
||||
set -ex
|
||||
|
||||
export SAHARA_DASHBOARD_SCREENSHOTS_DIR=sahara_dashboard/test/integration_tests/integration_tests_screenshots
|
||||
export SAHARA_DASHBOARD_SCREENSHOTS_DIR=/opt/stack/new/sahara-dashboard/.tox/py27integration/src/horizon/openstack_dashboard/test/integration_tests/integration_tests_screenshots
|
||||
|
|
|
@ -2,12 +2,15 @@
|
|||
|
||||
# This script will be executed inside post_test_hook function in devstack gate
|
||||
|
||||
set -ex
|
||||
set -x
|
||||
source commons $@
|
||||
|
||||
set +e
|
||||
cd /opt/stack/new/sahara-dashboard
|
||||
sudo -H -u stack tox -e py27integration
|
||||
retval=$?
|
||||
set -e
|
||||
|
||||
if [ -d ${SAHARA_DASHBOARD_SCREENSHOTS_DIR}/ ]; then
|
||||
cp -r ${SAHARA_DASHBOARD_SCREENSHOTS_DIR}/ /home/jenkins/workspace/gate-sahara-dashboard-dsvm-integration/
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue