Beautify Generate test-list file shell task

Currently  Generate test-list file shell task is wrapped in a
single long script with jinja template which makes it hard to
read and it also leads to cause jinja issue, breaking it into
multiple lines improves it.

Change-Id: I17dd53dc583d75a3a19019ba4d7eac8be7077338
This commit is contained in:
Chandan Kumar 2019-03-19 13:10:05 +05:30
parent 8794a6641b
commit abb16c921d
1 changed files with 6 additions and 1 deletions

View File

@ -104,7 +104,12 @@
then
. {{ tempest_venv_bin }}/activate
fi
tempest run --whitelist-file {{ tempest_test_whitelist_file_path }}{% if tempest_test_blacklist | length > 0 %} --blacklist-file {{ tempest_test_blacklist_file_path }}{% endif %} --list-tests &> {{ tempest_log_dir }}/test_list.txt
tempest run \
--whitelist-file {{ tempest_test_whitelist_file_path }} \
{%- if tempest_test_blacklist | length > 0 -%}
--blacklist-file {{ tempest_test_blacklist_file_path }} \
{%- endif -%}
--list-tests &> {{ tempest_log_dir }}/test_list.txt
args:
chdir: "{{ tempest_workspace }}"
executable: /bin/bash