summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSergei Chipiga <schipiga@mirantis.com>2016-05-23 17:05:00 +0300
committerSergei Chipiga <schipiga@mirantis.com>2016-06-07 13:09:47 +0300
commitd63f93a819e761a2be9c74112c9a55e4aa392e8e (patch)
tree9fbeb3eb9138d19f1c4f5990c5b7b593154f757e /tools
parentc3da75ab5a7f157d1650e08d17bfeef06a0feb62 (diff)
downloadhorizon-d63f93a819e761a2be9c74112c9a55e4aa392e8e.tar.gz
Implement video capture for failed tests
Example of video recording Idd218e09c0f8df8ec7740173d5f2d856b8baafa1 Change-Id: I350950095f840f63638175b09ed083109aada2da Closes-Bug: #1585092
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 afe153551..2e803eb1f 100755
--- a/tools/gate/integration/post_test_hook.sh
+++ b/tools/gate/integration/post_test_hook.sh
@@ -4,12 +4,14 @@
set -x
+# install avconv to capture video of failed tests
+sudo apt-get install -y libav-tools && export AVCONV_INSTALLED=1
+
cd /opt/stack/new/horizon
-sudo -H -u stack tox -e py27integration
+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
-