Split upgrade testing into it's own shell script

This will separate out the runs so that variables and modules are not
re-used across runs - ensuring the latest modules and versions are used,
and ensuring multiple versions of the tests playbook aren't required on
non-upgrade runs.

Change-Id: Icaeb360a6302ff207d970c0c6fe8e56add1e1327
This commit is contained in:
Andy McCrae
2017-02-17 16:53:50 +00:00
committed by Andy McCrae
parent f83296e073
commit 58bfc33bd2
5 changed files with 101 additions and 120 deletions

View File

@@ -115,14 +115,13 @@ deps =
setenv =
{[testenv]setenv}
TEST_PLAYBOOK={toxinidir}/tests/test-upgrade.yml
ANSIBLE_INVENTORY={toxinidir}/tests/upgrades-inventory
commands =
{[testenv:tests_clone]commands}
bash -c "if [ ! -d "{toxinidir}/tests/common/previous" ]; then \
git clone -b stable/ocata https://git.openstack.org/openstack/openstack-ansible-tests \
{toxinidir}/tests/common/previous; \
fi"
bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
bash -c "{toxinidir}/tests/test-nova-upgrades.sh"
[testenv:func_lxd]