use tempest_run_stackviz to generate stackviz report

When os_tempest is used locally or not in CI for
development and testing, it does not make any sense to generate
stackviz report each time. Adding tempest_run_stackviz makes sure
when it is enabled then it will run.

Change-Id: I4f9a6bcce7e1f4b7ebc873ee11f141d40f0d3e36
This commit is contained in:
Chandan Kumar 2019-02-21 13:50:20 +05:30
parent c4d586afea
commit 5dce7aec08
3 changed files with 4 additions and 0 deletions

View File

@ -333,3 +333,4 @@ tempest_tempestconf_profile:
# Stackviz tarball url
stackviz_tarball: "https://tarballs.openstack.org/package-stackviz-element/stackviz-latest.tar.gz"
stackviz_venv_bin: "/openstack/venvs/stackviz/bin"
tempest_run_stackviz: true

View File

@ -36,3 +36,4 @@
venv_install_destination_path: "{{ stackviz_venv_bin | dirname }}"
venv_pip_install_args: "--isolated"
venv_pip_packages: "{{ [ stackviz_tarball ] }}"
when: tempest_run_stackviz | bool

View File

@ -102,6 +102,7 @@
changed_when: false
failed_when: false
- block:
# Copy module doesn't copy recursively with remote_src set to true
- name: Copy stackviz-html to home directory
shell: |
@ -122,6 +123,7 @@
tags:
# don't trigger ANSIBLE0013
- skip_ansible_lint
when: tempest_run_stackviz | bool
- name: Fail if tempest tests did not succeed
assert: