summaryrefslogtreecommitdiff
path: root/tools/gate/integration/post_test_hook.sh
blob: 1b3463bd23218a7d006b3466ea5e2a7ad20a4cfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

# This script will be executed inside post_test_hook function in devstack gate

set -x

# install avconv to capture video of failed tests
sudo apt-get install -y libav-tools && export AVCONV_INSTALLED=1

sudo wget -q -O firefox.deb https://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_46.0.1-0ubuntu1_amd64.deb/download
sudo apt-get -y purge firefox
sudo dpkg -i firefox.deb
sudo rm firefox.deb

cd /opt/stack/new/horizon
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/
fi
exit $retval