horizon/tools/gate/integration/post_test_hook.sh
Sergei Chipiga 4619696ec4 Attach test logs individually for each test
Reports-Example: Ic35c95e720211bce8659baeb0cd4470308e25ea4

Change-Id: Ie5d972d2a560d4f59666c49dc3bf22fdb48071e8
Depends-On: I124973d9adbaaacf5d3429e6f6684f15de27dc7f
Closes-Bug: #1572999
2016-04-25 14:30:49 +03:00

16 lines
388 B
Bash
Executable File

#!/bin/bash
# This script will be executed inside post_test_hook function in devstack gate
set -x
cd /opt/stack/new/horizon
sudo -H -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/
fi
exit $retval