summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMark Vanderwiel <vanderwl@us.ibm.com>2016-01-27 16:47:47 -0600
committerMark Vanderwiel <vanderwl@us.ibm.com>2016-03-18 11:44:32 -0500
commit1976cb902d8cd9a9b02f68a26dcac81cbd20e17b (patch)
tree53fbc55a3f18dc4ebdc50902b8f2b75cdc9316f7 /tools
parentec67db1a7f5ad04e3cc62a2f8283a22123ed254e (diff)
downloadhorizon-1976cb902d8cd9a9b02f68a26dcac81cbd20e17b.tar.gz
Add trace to integration gate scripts
The set -x enabled line-by-line tracing within a bash script. This makes it easier to follow gate logs. Change-Id: I7a164cf94f661929d96f2c3d41ec0d2ad1530e32
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gate/integration/post_test_hook.sh3
-rwxr-xr-xtools/gate/integration/pre_test_hook.sh2
2 files changed, 5 insertions, 0 deletions
diff --git a/tools/gate/integration/post_test_hook.sh b/tools/gate/integration/post_test_hook.sh
index ddb64e269..f8dd33ab9 100755
--- a/tools/gate/integration/post_test_hook.sh
+++ b/tools/gate/integration/post_test_hook.sh
@@ -2,9 +2,12 @@
# 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/integration_tests_screenshots/ ]; then
cp -r openstack_dashboard/test/integration_tests/integration_tests_screenshots/ /home/jenkins/workspace/gate-horizon-dsvm-integration/
fi
diff --git a/tools/gate/integration/pre_test_hook.sh b/tools/gate/integration/pre_test_hook.sh
index cfbbdfc1f..77da055d1 100755
--- a/tools/gate/integration/pre_test_hook.sh
+++ b/tools/gate/integration/pre_test_hook.sh
@@ -2,6 +2,8 @@
# This script will be executed inside pre_test_hook function in devstack gate
+set -x
+
cd /opt/stack/new/horizon/openstack_dashboard/local/local_settings.d
mv _20_integration_tests_scaffolds.py.example _20_integration_tests_scaffolds.py
sudo service apache2 restart