Merge "Adding idempotency testing to the role func test"

This commit is contained in:
Jenkins 2016-07-13 16:45:29 +00:00 committed by Gerrit Code Review
commit 1ac1625868
1 changed files with 8 additions and 1 deletions

View File

@ -168,7 +168,14 @@ commands =
-e "rolename={toxinidir}" \
-e "install_test_packages=True" \
{toxinidir}/tests/test.yml -vvvv
# Idempotency test
bash -c 'ansible-playbook -i {toxinidir}/tests/inventory \
-e "rolename={toxinidir}" \
-e "install_test_packages=True" \
{toxinidir}/tests/test.yml \
| grep -q "changed=0.*failed=0" \
&& (echo "Idempotence test: pass" && exit 0) \
|| (echo "Idempotence test: fail" && exit 1)'
[testenv:linters]
deps =