)]}'
{"doc/source/ref/run_tests.rst":[{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"c3c31a16037c5779d27ba8996fae1aa1edd10108","unresolved":false,"context_lines":[{"line_number":256,"context_line":"Horizon keeps track of changes to the environment by comparing the"},{"line_number":257,"context_line":"current requirements files (``requirements.txt`` and"},{"line_number":258,"context_line":"``test-requirements.txt``) and the files last time the virtual"},{"line_number":259,"context_line":"environment is created or updated. If there is any difference,"},{"line_number":260,"context_line":"the virtual environment will be update automatically when you run"},{"line_number":261,"context_line":"``run_tests.sh``."}],"source_content_type":"text/x-rst","patch_set":7,"id":"9aa7fdbe_6a59a959","line":259,"updated":"2014-10-23 00:25:10.000000000","message":"is \u003d\u003d\u003e was","commit_id":"ee3d205e04b13b58409d5f449d52269388ee2df9"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"379f278ee264399ff84f66e308c9b8df6a490079","unresolved":false,"context_lines":[{"line_number":256,"context_line":"Horizon keeps track of changes to the environment by comparing the"},{"line_number":257,"context_line":"current requirements files (``requirements.txt`` and"},{"line_number":258,"context_line":"``test-requirements.txt``) and the files last time the virtual"},{"line_number":259,"context_line":"environment is created or updated. If there is any difference,"},{"line_number":260,"context_line":"the virtual environment will be update automatically when you run"},{"line_number":261,"context_line":"``run_tests.sh``."}],"source_content_type":"text/x-rst","patch_set":7,"id":"9aa7fdbe_310e1ee6","line":259,"in_reply_to":"9aa7fdbe_6a59a959","updated":"2014-10-23 17:08:41.000000000","message":"Done","commit_id":"ee3d205e04b13b58409d5f449d52269388ee2df9"},{"author":{"_account_id":9317,"name":"Ana Krivokapic","email":"akrivoka@redhat.com","username":"akrivoka"},"change_message_id":"a63df0b968be3cd04ac38a1a38dff4d75078eefa","unresolved":false,"context_lines":[{"line_number":257,"context_line":"current requirements files (``requirements.txt`` and"},{"line_number":258,"context_line":"``test-requirements.txt``) and the files last time the virtual"},{"line_number":259,"context_line":"environment was created or updated. If there is any difference,"},{"line_number":260,"context_line":"the virtual environment will be update automatically when you run"},{"line_number":261,"context_line":"``run_tests.sh``."}],"source_content_type":"text/x-rst","patch_set":8,"id":"5a890539_06249ead","line":260,"updated":"2014-11-21 11:04:15.000000000","message":"update -\u003e updated","commit_id":"0da0ea1438e81d392fd7d223e2140f87850f051d"}],"run_tests.sh":[{"author":{"_account_id":6825,"name":"Gary W. Smith","email":"garysmith123@gmail.com","username":"gary-w-smith"},"change_message_id":"077953a12c59fde8e2b05bc8f347521f537c882c","unresolved":false,"context_lines":[{"line_number":52,"context_line":"#"},{"line_number":53,"context_line":"root\u003d`pwd -P`"},{"line_number":54,"context_line":"venv\u003d$root/.venv"},{"line_number":55,"context_line":"venv_env_version\u003d$venv/environments"},{"line_number":56,"context_line":"with_venv\u003dtools/with_venv.sh"},{"line_number":57,"context_line":"included_dirs\u003d\"openstack_dashboard horizon\""},{"line_number":58,"context_line":""}],"source_content_type":"text/x-sh","patch_set":4,"id":"baa201ad_59cf3029","line":55,"updated":"2014-10-06 17:04:30.000000000","message":"Nice improvement! I like the fact that the environment file now resides in the .venv.","commit_id":"ce94ed8ab75f6cbb4e6f99396704ecfdfb5ea3f0"},{"author":{"_account_id":6825,"name":"Gary W. Smith","email":"garysmith123@gmail.com","username":"gary-w-smith"},"change_message_id":"077953a12c59fde8e2b05bc8f347521f537c882c","unresolved":false,"context_lines":[{"line_number":216,"context_line":""},{"line_number":217,"context_line":"function environment_check {"},{"line_number":218,"context_line":"  echo \"Checking environment.\""},{"line_number":219,"context_line":"  set +o errexit"},{"line_number":220,"context_line":"  cat requirements.txt test-requirements.txt | cmp $venv_env_version - \u003e /dev/null 2\u003e\u00261"},{"line_number":221,"context_line":"  local env_check_result\u003d$?"},{"line_number":222,"context_line":"  set -o errexit"}],"source_content_type":"text/x-sh","patch_set":4,"id":"baa201ad_d97ec0ae","line":219,"updated":"2014-10-06 17:04:30.000000000","message":"This logic is more convoluted than it needs to be. This error handling all handles situation where the ${venv_env_version} file/dir does not exist, but it would be more straighforward just to check for its existence first. ( if [[ -f $venv_env_version ]] ... )","commit_id":"ce94ed8ab75f6cbb4e6f99396704ecfdfb5ea3f0"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"73e788fd46f40822ebc36416ae4329ad528d5984","unresolved":false,"context_lines":[{"line_number":216,"context_line":""},{"line_number":217,"context_line":"function environment_check {"},{"line_number":218,"context_line":"  echo \"Checking environment.\""},{"line_number":219,"context_line":"  set +o errexit"},{"line_number":220,"context_line":"  cat requirements.txt test-requirements.txt | cmp $venv_env_version - \u003e /dev/null 2\u003e\u00261"},{"line_number":221,"context_line":"  local env_check_result\u003d$?"},{"line_number":222,"context_line":"  set -o errexit"}],"source_content_type":"text/x-sh","patch_set":4,"id":"baa201ad_c715cb9c","line":219,"in_reply_to":"baa201ad_d97ec0ae","updated":"2014-10-08 07:43:54.000000000","message":"Done","commit_id":"ce94ed8ab75f6cbb4e6f99396704ecfdfb5ea3f0"},{"author":{"_account_id":6825,"name":"Gary W. Smith","email":"garysmith123@gmail.com","username":"gary-w-smith"},"change_message_id":"077953a12c59fde8e2b05bc8f347521f537c882c","unresolved":false,"context_lines":[{"line_number":220,"context_line":"  cat requirements.txt test-requirements.txt | cmp $venv_env_version - \u003e /dev/null 2\u003e\u00261"},{"line_number":221,"context_line":"  local env_check_result\u003d$?"},{"line_number":222,"context_line":"  set -o errexit"},{"line_number":223,"context_line":"  if [ -e ${venv} -a $env_check_result -eq 0 ]; then"},{"line_number":224,"context_line":"    # If the environment exists and is up-to-date then set our variables"},{"line_number":225,"context_line":"    command_wrapper\u003d\"${root}/${with_venv}\""},{"line_number":226,"context_line":"    echo \"Environment is up to date.\""}],"source_content_type":"text/x-sh","patch_set":4,"id":"baa201ad_99dc38e6","line":223,"updated":"2014-10-06 17:04:30.000000000","message":"The -e ${venv} check is redundant, since $env_check_result can only be 0 if it exists.","commit_id":"ce94ed8ab75f6cbb4e6f99396704ecfdfb5ea3f0"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"73e788fd46f40822ebc36416ae4329ad528d5984","unresolved":false,"context_lines":[{"line_number":220,"context_line":"  cat requirements.txt test-requirements.txt | cmp $venv_env_version - \u003e /dev/null 2\u003e\u00261"},{"line_number":221,"context_line":"  local env_check_result\u003d$?"},{"line_number":222,"context_line":"  set -o errexit"},{"line_number":223,"context_line":"  if [ -e ${venv} -a $env_check_result -eq 0 ]; then"},{"line_number":224,"context_line":"    # If the environment exists and is up-to-date then set our variables"},{"line_number":225,"context_line":"    command_wrapper\u003d\"${root}/${with_venv}\""},{"line_number":226,"context_line":"    echo \"Environment is up to date.\""}],"source_content_type":"text/x-sh","patch_set":4,"id":"baa201ad_47d1db21","line":223,"in_reply_to":"baa201ad_99dc38e6","updated":"2014-10-08 07:43:54.000000000","message":"Done","commit_id":"ce94ed8ab75f6cbb4e6f99396704ecfdfb5ea3f0"},{"author":{"_account_id":6825,"name":"Gary W. Smith","email":"garysmith123@gmail.com","username":"gary-w-smith"},"change_message_id":"c99728d60aad867b15cc50e0ed4af4e36787c79b","unresolved":false,"context_lines":[{"line_number":217,"context_line":"function environment_check {"},{"line_number":218,"context_line":"  echo \"Checking environment.\""},{"line_number":219,"context_line":"  if [ -f $venv_env_version ]; then"},{"line_number":220,"context_line":"    set +o errexit"},{"line_number":221,"context_line":"    cat requirements.txt test-requirements.txt | cmp $venv_env_version - \u003e /dev/null"},{"line_number":222,"context_line":"    local env_check_result\u003d$?"},{"line_number":223,"context_line":"    set -o errexit"}],"source_content_type":"text/x-sh","patch_set":5,"id":"baa201ad_7e881a71","line":220,"updated":"2014-10-08 16:06:47.000000000","message":"Cleaning and setting errexit should now be unnecessary, since I think their only purpose was to avoid dying if $venv_env_version didn\u0027t exist. Can you either remove them or comment why they are needed?","commit_id":"fdeb08568fe61e620613bdc1a46c3d4d9742318c"},{"author":{"_account_id":6825,"name":"Gary W. Smith","email":"garysmith123@gmail.com","username":"gary-w-smith"},"change_message_id":"0e3c87c1c7e41c8f63be66baa48df1eb6186715d","unresolved":false,"context_lines":[{"line_number":217,"context_line":"function environment_check {"},{"line_number":218,"context_line":"  echo \"Checking environment.\""},{"line_number":219,"context_line":"  if [ -f $venv_env_version ]; then"},{"line_number":220,"context_line":"    set +o errexit"},{"line_number":221,"context_line":"    cat requirements.txt test-requirements.txt | cmp $venv_env_version - \u003e /dev/null"},{"line_number":222,"context_line":"    local env_check_result\u003d$?"},{"line_number":223,"context_line":"    set -o errexit"}],"source_content_type":"text/x-sh","patch_set":5,"id":"baa201ad_2a8f2c76","line":220,"in_reply_to":"baa201ad_6f66a62b","updated":"2014-10-08 18:37:12.000000000","message":"Got it. I missed the \u0027set -o errexit\u0027 at the top of the file that would cause this the script to terminate here.","commit_id":"fdeb08568fe61e620613bdc1a46c3d4d9742318c"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"f87ded13500ed7c270346540535864068377a54d","unresolved":false,"context_lines":[{"line_number":217,"context_line":"function environment_check {"},{"line_number":218,"context_line":"  echo \"Checking environment.\""},{"line_number":219,"context_line":"  if [ -f $venv_env_version ]; then"},{"line_number":220,"context_line":"    set +o errexit"},{"line_number":221,"context_line":"    cat requirements.txt test-requirements.txt | cmp $venv_env_version - \u003e /dev/null"},{"line_number":222,"context_line":"    local env_check_result\u003d$?"},{"line_number":223,"context_line":"    set -o errexit"}],"source_content_type":"text/x-sh","patch_set":5,"id":"baa201ad_6f66a62b","line":220,"in_reply_to":"baa201ad_7e881a71","updated":"2014-10-08 18:26:20.000000000","message":"No, we still need errexit. Without this, if two files ($venv_env_version and stdin) are different, the script exit immediately. I hope I don\u0027t miss something. This is the reason I cover both cases (where cmp returns 1 and where venv_env_version does not exist) without using \"if [ -f $venv_env_version ]\".\n\nI am not sure some comment is needed. It is a common style in shell programming and we already do the similar at L.157.\n(OpenStack community is a python community, so I can add a comment.)","commit_id":"fdeb08568fe61e620613bdc1a46c3d4d9742318c"}]}
