diff --git a/tests/travis.sh b/tests/travis.sh index c0940e7..36f9020 100644 --- a/tests/travis.sh +++ b/tests/travis.sh @@ -15,7 +15,7 @@ ansible-playbook -i $INVENTORY_FILE -c local --syntax-check -vv $PLAYBOOK ansible-playbook -i $INVENTORY_FILE -c local -e "{ mysql_vendor: $VENDOR, mysql_origin: $ORIGIN }" --sudo -vv $PLAYBOOK # Check indempotence -ansible-playbook -i $INVENTORY_FILE -c local -e "{ mysql_vendor: $VENDOR, mysql_origin: $ORIGIN }" --sudo -vv $PLAYBOOK \ -| grep -q 'changed=0.*failed=0' \ +ansible-playbook -i $INVENTORY_FILE -c local -e "{ mysql_vendor: $VENDOR, mysql_origin: $ORIGIN }" --sudo -vv $PLAYBOOK > idempot.txt +grep -q 'changed=0.*failed=0' idempot.txt \ && (echo 'Idempotence test: pass' && exit 0) \ -|| (echo 'Idempotence test: fail' && exit 1) +|| (echo 'Idempotence test: FAIL' && cat idempot.txt && exit 1)