From 8d81e1eff2e3e9fc6a202079288d68e304a2b747 Mon Sep 17 00:00:00 2001 From: Chandan Kumar Date: Thu, 4 Apr 2019 13:42:04 +0530 Subject: [PATCH] Fix Generate test-list file task Currently in Generate test-list file task, shell script used to generate test-list gets cancatnates with the whitelist-file options leading to saying whitelist file not found. Removing - from jinja conditionals fixes the issue Change-Id: I05f08cfbaca4d030d20079f22080340d6e1c7239 Signed-off-by: Chandan Kumar --- tasks/tempest_run.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/tempest_run.yml b/tasks/tempest_run.yml index cf0142a2..5b0cf41d 100644 --- a/tasks/tempest_run.yml +++ b/tasks/tempest_run.yml @@ -106,9 +106,9 @@ fi tempest run \ --whitelist-file {{ tempest_test_whitelist_file_path }} \ - {%- if tempest_test_blacklist | length > 0 -%} + {% if tempest_test_blacklist | length > 0 %} --blacklist-file {{ tempest_test_blacklist_file_path }} \ - {%- endif -%} + {% endif %} --list-tests &> {{ tempest_log_dir }}/test_list.txt args: chdir: "{{ tempest_workspace }}"