From 121ce274560b9883af4959a60e073b7a6ede5759 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Sun, 25 Sep 2016 14:43:32 +0200 Subject: [PATCH] Change travis.sh (help idempotence debug) --- tests/travis.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)