summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArx Cruz <arxcruz@redhat.com>2017-06-20 15:22:38 +0200
committerArx Cruz <arxcruz@redhat.com>2018-10-11 15:19:28 +0200
commit591fd44300a617d1646408c621e8f1ec5f03216b (patch)
tree602c6e3ae0f707727bce7be61afb85fbef175a29
parent5fedff7ba66a5f9d091f2544ca9b95a1f6b693bb (diff)
Enable process_stackviz function to be optional
This patch keeps the proccess_stackviz function default to true, but allow it to be optional called, if you set PROCESS_STACKVIZ to 0. This is required because not all the projects run tempest in the same way. One of the examples is the tripleo project, that has a particular way to run tempest (in undercloud) and it's being impossible to have the stackviz results in the logs/stackviz because the cleanup process overwrite the stackviz data there. Change-Id: Idf4f360ecba618900ef939d94db2ffb73e16b11a
Notes
Notes (review): Code-Review+2: Ian Wienand <iwienand@redhat.com> Code-Review+1: wes hayutin <whayutin@redhat.com> Code-Review+2: Clark Boylan <cboylan@sapwetik.org> Workflow+1: Clark Boylan <cboylan@sapwetik.org> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 10 Jan 2019 05:43:53 +0000 Reviewed-on: https://review.openstack.org/475788 Project: openstack-infra/devstack-gate Branch: refs/heads/master
-rwxr-xr-xdevstack-vm-gate-wrap.sh3
-rw-r--r--functions.sh4
2 files changed, 6 insertions, 1 deletions
diff --git a/devstack-vm-gate-wrap.sh b/devstack-vm-gate-wrap.sh
index a0c84f0..a345a0c 100755
--- a/devstack-vm-gate-wrap.sh
+++ b/devstack-vm-gate-wrap.sh
@@ -31,6 +31,9 @@ GIT_BRANCH=${GIT_BRANCH:-master}
31ANSIBLE_VERSION=${ANSIBLE_VERSION:-2.3.2.0} 31ANSIBLE_VERSION=${ANSIBLE_VERSION:-2.3.2.0}
32export DSTOOLS_VERSION=${DSTOOLS_VERSION:-0.4.0} 32export DSTOOLS_VERSION=${DSTOOLS_VERSION:-0.4.0}
33 33
34# Set to 0 to skip stackviz
35export PROCESS_STACKVIZ=${PROCESS_STACKVIZ:-1}
36
34# sshd may have been compiled with a default path excluding */sbin 37# sshd may have been compiled with a default path excluding */sbin
35export PATH=$PATH:/usr/local/sbin:/usr/sbin 38export PATH=$PATH:/usr/local/sbin:/usr/sbin
36# When doing xtrace (set -x / set -o xtrace), provide more debug output 39# When doing xtrace (set -x / set -o xtrace), provide more debug output
diff --git a/functions.sh b/functions.sh
index 7a33d24..5496cb5 100644
--- a/functions.sh
+++ b/functions.sh
@@ -838,7 +838,9 @@ function cleanup_host {
838 sudo mv $WORKSPACE/rpm-qa.txt.gz $BASE/logs/ 838 sudo mv $WORKSPACE/rpm-qa.txt.gz $BASE/logs/
839 fi 839 fi
840 840
841 process_stackviz tempest 841 if [[ "$PROCESS_STACKVIZ" -eq "1" ]] ; then
842 process_stackviz tempest
843 fi
842 844
843 process_testr_artifacts tempest 845 process_testr_artifacts tempest
844 process_testr_artifacts tempest old 846 process_testr_artifacts tempest old