)]}'
{"test-ansible-functional.sh":[{"author":{"_account_id":7217,"name":"Hugh Saunders","email":"hugh@wherenow.org","username":"hughsaunders"},"change_message_id":"bc4ee7518ef6ac0f7818d04a474bae839a168df0","unresolved":false,"context_lines":[{"line_number":99,"context_line":""},{"line_number":100,"context_line":"  # Check the output log for changed/failed tasks"},{"line_number":101,"context_line":"  grep -q \"changed\u003d0.*failed\u003d0\" /tmp/idempotence_test_output.txt \\"},{"line_number":102,"context_line":"                     \u0026\u0026 (echo \"Idempotence test: pass\" \u0026\u0026 exit 0) \\"},{"line_number":103,"context_line":"                     || (echo \"Idempotence test: fail\" \u0026\u0026 exit 1)"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"fi"}],"source_content_type":"text/x-sh","patch_set":9,"id":"1a95cdbc_59ff2701","line":102,"updated":"2016-10-05 08:38:12.000000000","message":"() creates a subshell, so exit will be exiting the subshell. If you want to exit the script use {} for grouping statements without creating a subshell. I\u0027d use ; instead of \u0026\u0026 after echo because I don\u0027t care about the exit code of echo.","commit_id":"3d2fd9fc4248f37c418407bfdfda15d20e975e89"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"7d2d37acd2adaf56fa8d81b8acc4aa522e51d393","unresolved":false,"context_lines":[{"line_number":99,"context_line":""},{"line_number":100,"context_line":"  # Check the output log for changed/failed tasks"},{"line_number":101,"context_line":"  grep -q \"changed\u003d0.*failed\u003d0\" /tmp/idempotence_test_output.txt \\"},{"line_number":102,"context_line":"                     \u0026\u0026 (echo \"Idempotence test: pass\" \u0026\u0026 exit 0) \\"},{"line_number":103,"context_line":"                     || (echo \"Idempotence test: fail\" \u0026\u0026 exit 1)"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"fi"}],"source_content_type":"text/x-sh","patch_set":9,"id":"1a95cdbc_54ba8ee2","line":102,"in_reply_to":"1a95cdbc_59ff2701","updated":"2016-10-05 08:57:37.000000000","message":"I took this straight from https://github.com/openstack/openstack-ansible-security/blob/687dcdc3ea260264b2b8779074e442cd48c9f269/tox.ini#L198-L200 but I realise that this could be done in a far more readable way now that we\u0027re not stuck with tox funnies. I\u0027ve revised it to be far more readable. Thanks!","commit_id":"3d2fd9fc4248f37c418407bfdfda15d20e975e89"},{"author":{"_account_id":7217,"name":"Hugh Saunders","email":"hugh@wherenow.org","username":"hughsaunders"},"change_message_id":"bc4ee7518ef6ac0f7818d04a474bae839a168df0","unresolved":false,"context_lines":[{"line_number":100,"context_line":"  # Check the output log for changed/failed tasks"},{"line_number":101,"context_line":"  grep -q \"changed\u003d0.*failed\u003d0\" /tmp/idempotence_test_output.txt \\"},{"line_number":102,"context_line":"                     \u0026\u0026 (echo \"Idempotence test: pass\" \u0026\u0026 exit 0) \\"},{"line_number":103,"context_line":"                     || (echo \"Idempotence test: fail\" \u0026\u0026 exit 1)"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"fi"}],"source_content_type":"text/x-sh","patch_set":9,"id":"1a95cdbc_9909af2f","line":103,"updated":"2016-10-05 08:38:12.000000000","message":"Same as above","commit_id":"3d2fd9fc4248f37c418407bfdfda15d20e975e89"}]}
