Fix tox.ini to work with ansible 2.2.1.0
Ansible 2.2.1.0 requires included vars files to exist even if the task/play that includes the file is never run (based on a conditional). This patch fixes that by ensuring the "upgrade" previous version of test-vars is fetched for every test. Change-Id: I01ee3c434343868c88f610ce40e77f5621ffa071
This commit is contained in:
parent
2f6338630e
commit
dd2f1f9b02
8
tox.ini
8
tox.ini
|
@ -58,6 +58,10 @@ commands =
|
|||
bash -c "if [ ! -d "{toxinidir}/tests/common" ]; then \
|
||||
git clone https://git.openstack.org/openstack/openstack-ansible-tests {toxinidir}/tests/common; \
|
||||
fi"
|
||||
bash -c "if [ ! -d "{toxinidir}/tests/common/previous" ]; then \
|
||||
git clone https://git.openstack.org/openstack/openstack-ansible-tests -b stable/newton \
|
||||
{toxinidir}/tests/common/previous; \
|
||||
fi"
|
||||
|
||||
|
||||
[testenv:pep8]
|
||||
|
@ -117,10 +121,6 @@ setenv =
|
|||
ANSIBLE_PARAMETERS=-vvv -e keystone_upgrade=True
|
||||
commands =
|
||||
{[testenv:tests_clone]commands}
|
||||
bash -c "if [ ! -d "{toxinidir}/tests/common/previous" ]; then \
|
||||
git clone https://git.openstack.org/openstack/openstack-ansible-tests -b stable/newton \
|
||||
{toxinidir}/tests/common/previous; \
|
||||
fi"
|
||||
bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue