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
This commit is contained in:
Arx Cruz 2017-06-20 15:22:38 +02:00
parent 5fedff7ba6
commit 591fd44300
2 changed files with 6 additions and 1 deletions

View File

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

View File

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