)]}'
{"run_tests.sh":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"e44dcaf41276fef8c511ac5a95cf7e6bde470d63","unresolved":false,"context_lines":[{"line_number":33,"context_line":"## Vars ----------------------------------------------------------------------"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"WORKING_DIR\u003d\"$(readlink -f $(dirname $0))\""},{"line_number":36,"context_line":"OSA_PROJECT_NAME\u003d\"$(grep project\u003d $(pwd)/.gitreview | cut -d \u0027/\u0027 -f 2 | sed \u0027s/.git//\u0027)\""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"COMMON_TESTS_PATH\u003d\"${WORKING_DIR}/tests/common\""},{"line_number":39,"context_line":"TESTING_HOME\u003d${TESTING_HOME:-$HOME}"}],"source_content_type":"text/x-sh","patch_set":2,"id":"3f79a3b5_e1507f0d","line":36,"range":{"start_line":36,"start_character":20,"end_line":36,"end_character":86},"updated":"2018-08-17 12:10:51.000000000","message":"This can be simplified/optimised by using only sed\u0027s -n option to not print anything, p flag which tells it to print what matched, and a regex capture group to only output the part that matters:\n\nsed -n \u0027s|^project\u003dopenstack/\\(.*\\).git$|\\1|p\u0027 $(pwd)/.gitreview","commit_id":"a4fdd1aaee6674df66a0c28a4b3b49000889a090"}]}
