summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTimur Sufiev <tsufiev@mirantis.com>2016-01-05 00:36:11 +0300
committerTimur Sufiev <tsufiev@mirantis.com>2016-01-11 13:47:00 +0300
commit16cc3cd5cba71961824ca286c85c45672a8a5585 (patch)
tree603279f828d18d72d9ad34f885fe339f844d21ad /tools
parent1178757445573ceca78bba129dc7109df7ccc948 (diff)
downloadhorizon-16cc3cd5cba71961824ca286c85c45672a8a5585.tar.gz
Provide integration test_hooks to be used in gate job
Using scripts inside horizon repo in test hooks we could not bother infra folks each time when we need to do some change to test job. The second part of the proposed change is to run these scripts at gate, see https://review.openstack.org/#/c/263457/ Related-Bug: #1526791 Change-Id: Ic2d60df846e876530662046d75c3e56e7841ba30
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gate/integration/post_test_hook.sh12
-rwxr-xr-xtools/gate/integration/pre_test_hook.sh4
2 files changed, 16 insertions, 0 deletions
diff --git a/tools/gate/integration/post_test_hook.sh b/tools/gate/integration/post_test_hook.sh
new file mode 100755
index 000000000..ddb64e269
--- /dev/null
+++ b/tools/gate/integration/post_test_hook.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# This script will be executed inside post_test_hook function in devstack gate
+
+cd /opt/stack/new/horizon
+sudo -H -u stack tox -e py27integration
+retval=$?
+if [ -d openstack_dashboard/test/integration_tests/integration_tests_screenshots/ ]; then
+ cp -r openstack_dashboard/test/integration_tests/integration_tests_screenshots/ /home/jenkins/workspace/gate-horizon-dsvm-integration/
+fi
+exit $retval
+
diff --git a/tools/gate/integration/pre_test_hook.sh b/tools/gate/integration/pre_test_hook.sh
new file mode 100755
index 000000000..949c99019
--- /dev/null
+++ b/tools/gate/integration/pre_test_hook.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+# This script will be executed inside pre_test_hook function in devstack gate
+