Merge "Reset tox_env and other params for every test workflow step"

This commit is contained in:
Zuul 2022-08-16 09:52:37 +00:00 committed by Gerrit Code Review
commit 6e47d5412a
1 changed files with 13 additions and 1 deletions

View File

@ -13,11 +13,14 @@
tox_command_line: '{{ tox_command_line.split() | join(" ") }}'
- name: initialize tox_env to empty dict for each test suite execution
set_fact:
tox_env: {}
- name: combine and normalize environment variable values
set_fact:
tox_env: >
{{ tox_env |
default({}) |
combine({ item.key: (item.value | string).strip() }) }}
loop: >
{{ ((tox_environment | from_yaml | dict2items) +
@ -45,6 +48,15 @@
ignore_errors: yes
- name: reset values used to generate tox_constrain_env after executing a test suite
set_fact:
pytest_addopts: ''
test_flaky: false
pytest_markers: "{% if not test_flaky%}not flaky{% endif %}"
pytest_maxfail: ''
tox_constraints: ''
tox_run_tests_timeout: 18000
- name: "show test cases errors"
debug: var=run_tox.stderr_lines
when: