diff --git a/tox.ini b/tox.ini index 68f61014..ba44d2f6 100644 --- a/tox.ini +++ b/tox.ini @@ -59,6 +59,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] @@ -118,10 +122,6 @@ setenv = ANSIBLE_PARAMETERS=-vvv -e swift_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"