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:
Mark Vanderwiel 2016-01-27 16:00:53 -06:00
parent 906eba4a1b
commit 27f02dbf33
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -10,6 +10,7 @@ setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = /bin/bash
commands = /bin/bash run_tests.sh -N --no-pep8 {posargs}
[testenv:py27]