Run tempest with its defaults

By default, tempest runs in parallel, with the amount of workers
depending on the CPU.

This adds an optional variable to define the concurrency or
serialization.

Change-Id: I7054cf78bbac9f84095d4b66d00f9d2cfea25ac5
This commit is contained in:
Jean-Philippe Evrard 2017-12-07 13:21:34 +00:00
parent ded74a98d7
commit 49ac8e5818
2 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,8 @@ tempest_pip_package_state: "latest"
# Toggle whether tempest actually executes # Toggle whether tempest actually executes
tempest_run: no tempest_run: no
# Define 0 (serial) or more to use a non default concurrency
#tempest_run_concurrency:
tempest_git_repo: https://git.openstack.org/openstack/tempest tempest_git_repo: https://git.openstack.org/openstack/tempest
tempest_git_install_branch: master tempest_git_install_branch: master

View File

@ -17,7 +17,7 @@
- name: Execute tempest tests - name: Execute tempest tests
shell: | shell: |
. {{ tempest_venv_bin }}/activate . {{ tempest_venv_bin }}/activate
tempest run --serial --whitelist-file {{ tempest_test_whitelist_file_path }} 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 }}
args: args:
chdir: "{{ tempest_venv_bin | dirname }}/workspace" chdir: "{{ tempest_venv_bin | dirname }}/workspace"
executable: /bin/bash executable: /bin/bash