From adcb83cff8a3c698da0b618fdd9d08246fbb6f27 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Tue, 30 Jan 2024 09:46:55 +0100 Subject: [PATCH] Fix condition of excludelist file removal Due to typo in condition, we ended up in removing excludelist file right after it being provisioned in certain circumstances. Change-Id: I455f4e796fb8dcac29fe7947fc192baee9367187 --- tasks/tempest_post_install.yml | 2 +- tasks/tempest_run.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/tempest_post_install.yml b/tasks/tempest_post_install.yml index af5f6b84..9e84d062 100644 --- a/tasks/tempest_post_install.yml +++ b/tasks/tempest_post_install.yml @@ -190,7 +190,7 @@ path: "{{ tempest_excludelist_file_path }}" state: absent when: - - tempest_test_excludelist | length == 0 + - _tempest_test_excludelist | length == 0 - name: Drop test_accounts_file copy: diff --git a/tasks/tempest_run.yml b/tasks/tempest_run.yml index 5c74a5f6..163a57c6 100644 --- a/tasks/tempest_run.yml +++ b/tasks/tempest_run.yml @@ -31,7 +31,7 @@ {% if tempest_test_worker_file_path is defined %} --worker-file {{ tempest_test_worker_file_path }} \ {% endif %} - {% if tempest_test_excludelist | length > 0 %} + {% if _tempest_test_excludelist | length > 0 %} --exclude-list {{ tempest_excludelist_file_path }} \ {% endif %} --include-list {{ tempest_includelist_file_path }} > {{ tempest_log_dir }}/tempest_run.log @@ -110,7 +110,7 @@ fi tempest run \ --include-list {{ tempest_includelist_file_path }} \ - {% if tempest_test_excludelist | length > 0 %} + {% if _tempest_test_excludelist | length > 0 %} --exclude-list {{ tempest_excludelist_file_path }} \ {% endif %} --list-tests &> {{ tempest_log_dir }}/test_list.txt