Browse Source

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
changes/88/475788/5
Arx Cruz 1 year ago
parent
commit
591fd44300
2 changed files with 6 additions and 1 deletions
  1. 3
    0
      devstack-vm-gate-wrap.sh
  2. 3
    1
      functions.sh

+ 3
- 0
devstack-vm-gate-wrap.sh View File

@@ -31,6 +31,9 @@ GIT_BRANCH=${GIT_BRANCH:-master}
31 31
 ANSIBLE_VERSION=${ANSIBLE_VERSION:-2.3.2.0}
32 32
 export DSTOOLS_VERSION=${DSTOOLS_VERSION:-0.4.0}
33 33
 
34
+# Set to 0 to skip stackviz
35
+export PROCESS_STACKVIZ=${PROCESS_STACKVIZ:-1}
36
+
34 37
 # sshd may have been compiled with a default path excluding */sbin
35 38
 export PATH=$PATH:/usr/local/sbin:/usr/sbin
36 39
 # When doing xtrace (set -x / set -o xtrace), provide more debug output

+ 3
- 1
functions.sh View File

@@ -838,7 +838,9 @@ function cleanup_host {
838 838
         sudo mv $WORKSPACE/rpm-qa.txt.gz $BASE/logs/
839 839
     fi
840 840
 
841
-    process_stackviz tempest
841
+    if [[ "$PROCESS_STACKVIZ" -eq "1" ]] ; then
842
+        process_stackviz tempest
843
+    fi
842 844
 
843 845
     process_testr_artifacts tempest
844 846
     process_testr_artifacts tempest old

Loading…
Cancel
Save