Merge "Revert "Use tempest run for generating subunit results""
This commit is contained in:
commit
71e70f1d9a
@ -16,6 +16,8 @@
|
|||||||
## Verbosity Options
|
## Verbosity Options
|
||||||
debug: False
|
debug: False
|
||||||
|
|
||||||
|
stestr_executable: "{{ _stestr_executable | default('stestr') }}"
|
||||||
|
|
||||||
# Install openstack tempest
|
# Install openstack tempest
|
||||||
# set the tempest_install_method to source or distro
|
# set the tempest_install_method to source or distro
|
||||||
# on choosing source it will install from git or venv
|
# on choosing source it will install from git or venv
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
then
|
then
|
||||||
. {{ tempest_venv_bin }}/activate
|
. {{ tempest_venv_bin }}/activate
|
||||||
fi
|
fi
|
||||||
tempest run {% if tempest_run_concurrency is defined %}{% if tempest_run_concurrency | int > 0 %}--concurrency {{ tempest_run_concurrency | int }}{% else %}--serial{% endif %}{% endif %} --whitelist-file {{ tempest_test_whitelist_file_path }}{% if tempest_test_blacklist | length > 0 %} --blacklist-file {{ tempest_test_blacklist_file_path }}{% endif %} --subunit > {{ tempest_log_dir }}/testrepository.subunit
|
tempest run {% if tempest_run_concurrency is defined %}{% if tempest_run_concurrency | int > 0 %}--concurrency {{ tempest_run_concurrency | int }}{% else %}--serial{% endif %}{% endif %} --whitelist-file {{ tempest_test_whitelist_file_path }}{% if tempest_test_blacklist | length > 0 %} --blacklist-file {{ tempest_test_blacklist_file_path }}{% endif %}
|
||||||
args:
|
args:
|
||||||
chdir: "{{ tempest_workspace }}"
|
chdir: "{{ tempest_workspace }}"
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
@ -31,6 +31,29 @@
|
|||||||
# don't trigger ANSIBLE0013
|
# don't trigger ANSIBLE0013
|
||||||
- skip_ansible_lint
|
- skip_ansible_lint
|
||||||
|
|
||||||
|
always:
|
||||||
|
- name: Generate raw subunit results
|
||||||
|
# Despite not using testrepository, we leave the output filename as
|
||||||
|
# testrepository.subunit as the OpenStack Health dashboard relies on
|
||||||
|
# subunit files with this particular name.
|
||||||
|
# NOTE(mattt): At present we're not placing this file in a valid location
|
||||||
|
# to be used by the OpenStack Health dashboard.
|
||||||
|
shell: |
|
||||||
|
set -e
|
||||||
|
if [ -d {{ tempest_venv_bin }} ];
|
||||||
|
then
|
||||||
|
. {{ tempest_venv_bin }}/activate
|
||||||
|
fi
|
||||||
|
{{ stestr_executable }} last --subunit > {{ tempest_log_dir }}/testrepository.subunit
|
||||||
|
args:
|
||||||
|
chdir: "{{ tempest_workspace }}"
|
||||||
|
executable: /bin/bash
|
||||||
|
changed_when: false
|
||||||
|
failed_when: false
|
||||||
|
tags:
|
||||||
|
# don't trigger ANSIBLE0013
|
||||||
|
- skip_ansible_lint
|
||||||
|
|
||||||
- name: Generate xml subunit results
|
- name: Generate xml subunit results
|
||||||
shell: |
|
shell: |
|
||||||
set -e
|
set -e
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
## APT Cache options
|
## APT Cache options
|
||||||
cache_timeout: 600
|
cache_timeout: 600
|
||||||
|
|
||||||
|
_stestr_executable: "{{ (tempest_install_method == 'distro') | ternary('testr', 'stestr') }}"
|
||||||
|
|
||||||
tempest_distro_packages:
|
tempest_distro_packages:
|
||||||
- git-core
|
- git-core
|
||||||
- libxslt1.1 # required by the python module unittest2
|
- libxslt1.1 # required by the python module unittest2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user