Fix the collection of integration tests artifacts

Don't rely on a particular workspace name, as it changes when job's
name changes.

Depends-On: I28d84235fb51a49492ed9c96794ba74f317f66b6
Change-Id: I63e45ee89711b429d0d878303aefeec4b159125a
Closes-Bug: #1625253
(cherry picked from commit 2fec0a1ae8)
This commit is contained in:
Timur Sufiev 2016-09-19 19:19:05 +03:00 committed by Rob Cresswell
parent 6c3f962485
commit aa8329472a
1 changed files with 4 additions and 2 deletions

View File

@ -12,11 +12,13 @@ sudo apt-get -y purge firefox
sudo dpkg -i firefox.deb
sudo rm firefox.deb
cd /opt/stack/new/horizon
HORIZON_DIR=/opt/stack/new/horizon
pushd $HORIZON_DIR
sudo -H -E -u stack tox -e py27integration
retval=$?
if [ -d openstack_dashboard/test/integration_tests/test_reports/ ]; then
cp -r openstack_dashboard/test/integration_tests/test_reports/ /home/jenkins/workspace/gate-horizon-dsvm-integration-$1/
popd
cp -r $HORIZON_DIR/openstack_dashboard/test/integration_tests/test_reports/ ./
fi
exit $retval