summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTimur Sufiev <tsufiev@mirantis.com>2016-09-19 19:19:05 +0300
committerTimur Sufiev <tsufiev@mirantis.com>2016-09-20 20:56:41 +0000
commit2fec0a1ae8515d49a771c1920bb2f98e6a734daf (patch)
tree16cd71fa752f78acfca92e218042affe7fd9db2c /tools
parent3149a19af336f669dd8df164aeb2cd0de45104fd (diff)
downloadhorizon-2fec0a1ae8515d49a771c1920bb2f98e6a734daf.tar.gz
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
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gate/integration/post_test_hook.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/gate/integration/post_test_hook.sh b/tools/gate/integration/post_test_hook.sh
index 2a4414fa1..eb3a2b1f5 100755
--- a/tools/gate/integration/post_test_hook.sh
+++ b/tools/gate/integration/post_test_hook.sh
@@ -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