diff --git a/roles/run-tempest-26/tasks/main.yaml b/roles/run-tempest-26/tasks/main.yaml index f8460063c3..7423bfba4b 100644 --- a/roles/run-tempest-26/tasks/main.yaml +++ b/roles/run-tempest-26/tasks/main.yaml @@ -62,7 +62,9 @@ when: blacklist_stat.stat.exists - name: Run Tempest - command: tox -e {{tox_envlist}} {{tox_extra_args}} -- {{tempest_test_regex|quote}} {{blacklist_option|default('')}} \ + command: tox -e {{tox_envlist}} {{tox_extra_args}} -- \ + {{tempest_test_regex|quote if (tempest_test_regex|length>0)|default(None, True)}} \ + {{blacklist_option|default(None)}} \ --concurrency={{tempest_concurrency|default(default_concurrency)}} \ --black-regex={{tempest_black_regex|quote}} args: diff --git a/roles/run-tempest/tasks/main.yaml b/roles/run-tempest/tasks/main.yaml index e569e53e07..3fb494f349 100644 --- a/roles/run-tempest/tasks/main.yaml +++ b/roles/run-tempest/tasks/main.yaml @@ -120,10 +120,11 @@ - target_branch in ["stable/train", "stable/ussuri", "stable/victoria"] - name: Run Tempest - command: tox -e {{tox_envlist}} {{tox_extra_args}} -- {{tempest_test_regex|quote}} \ - {{blacklist_option|default('')}} {{exclude_list_option|default('')}} \ + command: tox -e {{tox_envlist}} {{tox_extra_args}} -- \ + {{tempest_test_regex|quote if (tempest_test_regex|length>0)|default(None, True)}} \ + {{blacklist_option|default(None)}} {{exclude_list_option|default(None)}} \ --concurrency={{tempest_concurrency|default(default_concurrency)}} \ - {{tempest_test_exclude_regex|default('')}} + {{tempest_test_exclude_regex|default(None)}} args: chdir: "{{devstack_base_dir}}/tempest" register: tempest_run_result