Set tempest concurrency to int only

Currently os_tempest role checks tempest concurrency to greater
than 0. But this review https://review.openstack.org/#/c/641349/
sets default concurrency to zero so we donot need to check the
default concuurency to greater than 0.

https://github.com/mtreinish/stestr/pull/232 already checks the
concurrency value to int so we donot need to define check for int.

Change-Id: If53b59f3faede91e158cd544742ab37639800b57
This commit is contained in:
Chandan Kumar 2019-03-15 00:01:56 +05:30
parent b3e904e8f0
commit 43298b1bbe
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
then
. {{ tempest_venv_bin }}/activate
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 %}
tempest run {% if tempest_run_concurrency is defined %}--concurrency {{ tempest_run_concurrency }}{% else %}--serial{% endif %} --whitelist-file {{ tempest_test_whitelist_file_path }}{% if tempest_test_blacklist | length > 0 %} --blacklist-file {{ tempest_test_blacklist_file_path }}{% endif %}
args:
chdir: "{{ tempest_workspace }}"
executable: /bin/bash