run-tempest: save the result of tempest execution

This is useful when a job needs to execute additional tests
after tempest run, so ignoring the tempest run failures,
and combine the results afterwards.

Change-Id: I61fc5ebf69db47a035ae8294cfda4047d9f7e21a
This commit is contained in:
Luigi Toscano 2020-04-17 13:31:00 +02:00
parent 8f3e503413
commit b774666aae
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,8 @@
Run Tempest
The result of the tempest run is stored in the `tempest_run_result`
variable (through the `register` statement).
**Role Variables**
.. zuul:rolevar:: devstack_base_dir

View File

@ -55,6 +55,7 @@
--black-regex={{tempest_black_regex|quote}}
args:
chdir: "{{devstack_base_dir}}/tempest"
register: tempest_run_result
become: true
become_user: tempest
environment: "{{ tempest_tox_environment }}"