)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"b2db92f47634289d60c2fe276af6d740a0cec2a2","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Doug Wiegley \u003cdougw@a10networks.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-11-15 15:26:11 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"run_tests.sh script fixes"},{"line_number":8,"context_line":"OS X grep error, empty OS_TEST_PATH bug"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"Closes-Bug: 1391858"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"5a890539_ac6c9f9d","line":7,"updated":"2014-11-20 21:19:02.000000000","message":"need a blank line after the first line of a commit message.","commit_id":"bf2057c6f1ae538d721c3d33df09f247572c2d66"},{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"b2db92f47634289d60c2fe276af6d740a0cec2a2","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2014-11-15 15:26:11 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"run_tests.sh script fixes"},{"line_number":8,"context_line":"OS X grep error, empty OS_TEST_PATH bug"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"Closes-Bug: 1391858"},{"line_number":11,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"5a890539_4c133b0d","line":8,"updated":"2014-11-20 21:19:02.000000000","message":"Can you explain what\u0027s being fixed in a bit more detail?\n\nIt also sounds like you\u0027re fixing 2 bugs.  Ideally that would be 2 patches.\n\nhttps://wiki.openstack.org/wiki/GitCommitMessages","commit_id":"bf2057c6f1ae538d721c3d33df09f247572c2d66"}],"run_tests.sh":[{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"2c7b0311fd9a8781c495884c8ab4b6f1f8d9c27d","unresolved":false,"context_lines":[{"line_number":137,"context_line":"  OS_TEST_PATH\u003d`echo $testargs|grep -o \u0027neutron\\.tests[^[:space:]:]\\+\u0027|tr . /`"},{"line_number":138,"context_line":"  if [ -d \"$OS_TEST_PATH\" ]; then"},{"line_number":139,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$OS_TEST_PATH $wrapper\""},{"line_number":140,"context_line":"  elif [ -d \"$(dirname \\\"$OS_TEST_PATH\\\")\" ]; then"},{"line_number":141,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$(dirname \\\"$OS_TEST_PATH\\\") $wrapper\""},{"line_number":142,"context_line":"  fi"},{"line_number":143,"context_line":"  echo \"Running \\`${wrapper} $TESTRTESTS\\`\""}],"source_content_type":"text/x-sh","patch_set":6,"id":"5a890539_1c13fc0d","line":140,"updated":"2014-11-13 22:52:30.000000000","message":"nit: why don\u0027t you wrap it in \u0027 \u0027 so you don\u0027t have to escape \\\". okay thouggh","commit_id":"1d964d0a588741d77be0621d54200b46284bdec3"},{"author":{"_account_id":10980,"name":"Doug Wiegley","email":"dougwig@parkside.io","username":"dougw"},"change_message_id":"919f2edec5aea51f6b1219a2ba07495f79562bd3","unresolved":false,"context_lines":[{"line_number":137,"context_line":"  OS_TEST_PATH\u003d`echo $testargs|grep -o \u0027neutron\\.tests[^[:space:]:]\\+\u0027|tr . /`"},{"line_number":138,"context_line":"  if [ -d \"$OS_TEST_PATH\" ]; then"},{"line_number":139,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$OS_TEST_PATH $wrapper\""},{"line_number":140,"context_line":"  elif [ -d \"$(dirname \\\"$OS_TEST_PATH\\\")\" ]; then"},{"line_number":141,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$(dirname \\\"$OS_TEST_PATH\\\") $wrapper\""},{"line_number":142,"context_line":"  fi"},{"line_number":143,"context_line":"  echo \"Running \\`${wrapper} $TESTRTESTS\\`\""}],"source_content_type":"text/x-sh","patch_set":6,"id":"5a890539_5cd024f6","line":140,"in_reply_to":"5a890539_1c13fc0d","updated":"2014-11-13 23:00:18.000000000","message":"$() and `` are functionally identical here, and I think I\u0027d still need the quotes.  The \\\" is because of two levels of variable expansion going on.  The expansion of $OS_TEST_PATH could have spaces or be empty, in which case, you need quotes for dirname to see the right thing.  Similarly, once the exec returns its results, without quotes, spaces or an empty string will result in the wrong thing happening.\n\nIt\u0027s late here and I\u0027m high on cold meds, so hopefully that was semi-coherent.","commit_id":"1d964d0a588741d77be0621d54200b46284bdec3"},{"author":{"_account_id":10980,"name":"Doug Wiegley","email":"dougwig@parkside.io","username":"dougw"},"change_message_id":"a9f6e575627f28d3d27dd31971c4b5cb9ca58d4b","unresolved":false,"context_lines":[{"line_number":137,"context_line":"  OS_TEST_PATH\u003d`echo $testargs|grep -o \u0027neutron\\.tests[^[:space:]:]\\+\u0027|tr . /`"},{"line_number":138,"context_line":"  if [ -d \"$OS_TEST_PATH\" ]; then"},{"line_number":139,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$OS_TEST_PATH $wrapper\""},{"line_number":140,"context_line":"  elif [ -d \"$(dirname \\\"$OS_TEST_PATH\\\")\" ]; then"},{"line_number":141,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$(dirname \\\"$OS_TEST_PATH\\\") $wrapper\""},{"line_number":142,"context_line":"  fi"},{"line_number":143,"context_line":"  echo \"Running \\`${wrapper} $TESTRTESTS\\`\""}],"source_content_type":"text/x-sh","patch_set":6,"id":"5a890539_449d7e65","line":140,"in_reply_to":"5a890539_1c13fc0d","updated":"2014-11-15 15:27:49.000000000","message":"Nesting cleaned up, thank you.","commit_id":"1d964d0a588741d77be0621d54200b46284bdec3"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"3a51e0c7c96805fec3adbd5d4e693b1219ff3f19","unresolved":false,"context_lines":[{"line_number":137,"context_line":"  OS_TEST_PATH\u003d`echo $testargs|grep -o \u0027neutron\\.tests[^[:space:]:]\\+\u0027|tr . /`"},{"line_number":138,"context_line":"  if [ -d \"$OS_TEST_PATH\" ]; then"},{"line_number":139,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$OS_TEST_PATH $wrapper\""},{"line_number":140,"context_line":"  elif [ -d \"$(dirname \\\"$OS_TEST_PATH\\\")\" ]; then"},{"line_number":141,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$(dirname \\\"$OS_TEST_PATH\\\") $wrapper\""},{"line_number":142,"context_line":"  fi"},{"line_number":143,"context_line":"  echo \"Running \\`${wrapper} $TESTRTESTS\\`\""}],"source_content_type":"text/x-sh","patch_set":6,"id":"5a890539_6bdc3074","line":140,"in_reply_to":"5a890539_1cd5bcb8","updated":"2014-11-14 02:36:06.000000000","message":"some test results:\n./run_test.sh -N neutron.tests.unit.agent.linux.test_ovs_lib.TestBaseOVS.test_delete_bridge\n\n+ OS_TEST_PATH\u003dneutron/tests/unit/agent/linux/test_ovs_lib/TestBaseOVS/test_delete_bridge\n\n+ \u0027[\u0027 -d neutron/tests/unit/agent/linux/test_ovs_lib/TestBaseOVS/test_delete_bridge \u0027]\u0027\n++ dirname \u0027\"neutron/tests/unit/agent/linux/test_ovs_lib/TestBaseOVS/test_delete_bridge\"\u0027\n+ \u0027[\u0027 -d \u0027\"neutron/tests/unit/agent/linux/test_ovs_lib/TestBaseOVS\u0027 \u0027]\u0027\n\n\npay attention to:\n$ dirname \u0027\"neutron/tests/unit/agent/linux/test_ovs_lib/TestBaseOVS/test_delete_bridge\"\u0027\n\"neutron/tests/unit/agent/linux/test_ovs_lib/TestBaseOVS\nthis leads to a unclosed quotes","commit_id":"1d964d0a588741d77be0621d54200b46284bdec3"},{"author":{"_account_id":10980,"name":"Doug Wiegley","email":"dougwig@parkside.io","username":"dougw"},"change_message_id":"4883a11ea0e7a20b35fefe4a3179076320e6b03e","unresolved":false,"context_lines":[{"line_number":137,"context_line":"  OS_TEST_PATH\u003d`echo $testargs|grep -o \u0027neutron\\.tests[^[:space:]:]\\+\u0027|tr . /`"},{"line_number":138,"context_line":"  if [ -d \"$OS_TEST_PATH\" ]; then"},{"line_number":139,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$OS_TEST_PATH $wrapper\""},{"line_number":140,"context_line":"  elif [ -d \"$(dirname \\\"$OS_TEST_PATH\\\")\" ]; then"},{"line_number":141,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$(dirname \\\"$OS_TEST_PATH\\\") $wrapper\""},{"line_number":142,"context_line":"  fi"},{"line_number":143,"context_line":"  echo \"Running \\`${wrapper} $TESTRTESTS\\`\""}],"source_content_type":"text/x-sh","patch_set":6,"id":"5a890539_1cd5bcb8","line":140,"in_reply_to":"5a890539_5cd024f6","updated":"2014-11-13 23:06:26.000000000","message":"Oh, you had single quotes, not backticks.  Single quotes would prevent any expansion.  E.g.:\n$ echo \u0027$(ls)\u0027\n$(ls)","commit_id":"1d964d0a588741d77be0621d54200b46284bdec3"},{"author":{"_account_id":10980,"name":"Doug Wiegley","email":"dougwig@parkside.io","username":"dougw"},"change_message_id":"a9f6e575627f28d3d27dd31971c4b5cb9ca58d4b","unresolved":false,"context_lines":[{"line_number":137,"context_line":"  OS_TEST_PATH\u003d`echo $testargs|grep -o \u0027neutron\\.tests[^[:space:]:]\\+\u0027|tr . /`"},{"line_number":138,"context_line":"  if [ -d \"$OS_TEST_PATH\" ]; then"},{"line_number":139,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$OS_TEST_PATH $wrapper\""},{"line_number":140,"context_line":"  elif [ -d \"$(dirname \\\"$OS_TEST_PATH\\\")\" ]; then"},{"line_number":141,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$(dirname \\\"$OS_TEST_PATH\\\") $wrapper\""},{"line_number":142,"context_line":"  fi"},{"line_number":143,"context_line":"  echo \"Running \\`${wrapper} $TESTRTESTS\\`\""}],"source_content_type":"text/x-sh","patch_set":6,"id":"5a890539_848a0619","line":140,"in_reply_to":"5a890539_6bdc3074","updated":"2014-11-15 15:27:49.000000000","message":"Done","commit_id":"1d964d0a588741d77be0621d54200b46284bdec3"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"3a51e0c7c96805fec3adbd5d4e693b1219ff3f19","unresolved":false,"context_lines":[{"line_number":138,"context_line":"  if [ -d \"$OS_TEST_PATH\" ]; then"},{"line_number":139,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$OS_TEST_PATH $wrapper\""},{"line_number":140,"context_line":"  elif [ -d \"$(dirname \\\"$OS_TEST_PATH\\\")\" ]; then"},{"line_number":141,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$(dirname \\\"$OS_TEST_PATH\\\") $wrapper\""},{"line_number":142,"context_line":"  fi"},{"line_number":143,"context_line":"  echo \"Running \\`${wrapper} $TESTRTESTS\\`\""},{"line_number":144,"context_line":"  bash -c \"${wrapper} $TESTRTESTS | ${wrapper} subunit2pyunit\""}],"source_content_type":"text/x-sh","patch_set":6,"id":"5a890539_cb39a4a5","line":141,"updated":"2014-11-14 02:36:06.000000000","message":"another case:\n./run_test.sh -N:\n\n+ OS_TEST_PATH\u003d\n\n+ \u0027[\u0027 -d \u0027\u0027 \u0027]\u0027\n\n++ dirname \u0027\"\"\u0027\n\n+ \u0027[\u0027 -d . \u0027]\u0027\n\n++ dirname \u0027\"\"\u0027\n\n+ wrapper\u003d\u0027OS_TEST_PATH\u003d. \u0027\n\npay attention to the fact:\n$dirname \u0027\"\"\u0027 leads to .\n\nI think we should check if the $OS_TEST_PATH is empty, then do corresponding actions.","commit_id":"1d964d0a588741d77be0621d54200b46284bdec3"},{"author":{"_account_id":10980,"name":"Doug Wiegley","email":"dougwig@parkside.io","username":"dougw"},"change_message_id":"a9f6e575627f28d3d27dd31971c4b5cb9ca58d4b","unresolved":false,"context_lines":[{"line_number":138,"context_line":"  if [ -d \"$OS_TEST_PATH\" ]; then"},{"line_number":139,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$OS_TEST_PATH $wrapper\""},{"line_number":140,"context_line":"  elif [ -d \"$(dirname \\\"$OS_TEST_PATH\\\")\" ]; then"},{"line_number":141,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$(dirname \\\"$OS_TEST_PATH\\\") $wrapper\""},{"line_number":142,"context_line":"  fi"},{"line_number":143,"context_line":"  echo \"Running \\`${wrapper} $TESTRTESTS\\`\""},{"line_number":144,"context_line":"  bash -c \"${wrapper} $TESTRTESTS | ${wrapper} subunit2pyunit\""}],"source_content_type":"text/x-sh","patch_set":6,"id":"5a890539_649a7a6f","line":141,"in_reply_to":"5a890539_cb39a4a5","updated":"2014-11-15 15:27:49.000000000","message":"Done","commit_id":"1d964d0a588741d77be0621d54200b46284bdec3"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"3ff8ef61f2cb48f3b1bbd050ec1820aef3cdc2e3","unresolved":false,"context_lines":[{"line_number":134,"context_line":"  set +e"},{"line_number":135,"context_line":"  testargs\u003d`echo \"$testargs\" | sed -e\u0027s/^\\s*\\(.*\\)\\s*$/\\1/\u0027`"},{"line_number":136,"context_line":"  TESTRTESTS\u003d\"$TESTRTESTS --testr-args\u003d\u0027--subunit $testopts $testargs\u0027\""},{"line_number":137,"context_line":"  OS_TEST_PATH\u003d`echo $testargs|grep -o \u0027neutron\\.tests[^[:space:]:]\\+\u0027|tr . /`"},{"line_number":138,"context_line":"  if [ -n \"$OS_TEST_PATH\" ]; then"},{"line_number":139,"context_line":"      os_test_dir\u003d$(dirname \"$OS_TEST_PATH\")"},{"line_number":140,"context_line":"  else"}],"source_content_type":"text/x-sh","patch_set":7,"id":"5a890539_877be38a","line":137,"updated":"2014-11-16 15:04:55.000000000","message":"why remove *?","commit_id":"bf2057c6f1ae538d721c3d33df09f247572c2d66"},{"author":{"_account_id":10980,"name":"Doug Wiegley","email":"dougwig@parkside.io","username":"dougw"},"change_message_id":"c153c6f59ed9e97b178dd3a47dd92b084b9fdcab","unresolved":false,"context_lines":[{"line_number":134,"context_line":"  set +e"},{"line_number":135,"context_line":"  testargs\u003d`echo \"$testargs\" | sed -e\u0027s/^\\s*\\(.*\\)\\s*$/\\1/\u0027`"},{"line_number":136,"context_line":"  TESTRTESTS\u003d\"$TESTRTESTS --testr-args\u003d\u0027--subunit $testopts $testargs\u0027\""},{"line_number":137,"context_line":"  OS_TEST_PATH\u003d`echo $testargs|grep -o \u0027neutron\\.tests[^[:space:]:]\\+\u0027|tr . /`"},{"line_number":138,"context_line":"  if [ -n \"$OS_TEST_PATH\" ]; then"},{"line_number":139,"context_line":"      os_test_dir\u003d$(dirname \"$OS_TEST_PATH\")"},{"line_number":140,"context_line":"  else"}],"source_content_type":"text/x-sh","patch_set":7,"id":"5a890539_e7dca7e6","line":137,"in_reply_to":"5a890539_877be38a","updated":"2014-11-16 15:41:01.000000000","message":"The * is illegal syntax on a mac, and seems to make no difference to how it parses.  Given -o, and the requirement of a prefix of neutron.tests, it\u0027s actually redundant, and multiple spaces will get thrown out either way.","commit_id":"bf2057c6f1ae538d721c3d33df09f247572c2d66"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"d7b10d5cd65aa58aa857d3e3ceead8dee79eb589","unresolved":false,"context_lines":[{"line_number":145,"context_line":"  elif [ -d \"$os_test_dir\" ]; then"},{"line_number":146,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$os_test_dir $wrapper\""},{"line_number":147,"context_line":"  fi"},{"line_number":148,"context_line":"  echo \"Running \\`${wrapper} $TESTRTESTS\\`\""},{"line_number":149,"context_line":"  bash -c \"${wrapper} $TESTRTESTS | ${wrapper} subunit2pyunit\""},{"line_number":150,"context_line":"  RESULT\u003d$?"},{"line_number":151,"context_line":"  set -e"}],"source_content_type":"text/x-sh","patch_set":7,"id":"5a890539_5b01dc04","line":148,"updated":"2014-11-16 01:30:41.000000000","message":"Do u have any example to run test cases with good OS_TEST_PATH?\n\nfor example, If I run\n./run_tests.sh -N  neutron.tests.unit.test_api_v2.JSONV2TestCase\n\n+ testargs\u003dneutron.tests.unit.test_api_v2.JSONV2TestCase\n+ TESTRTESTS\u003d\u0027python -m neutron.openstack.common.lockutils python setup.py testr --slowest --testr-args\u003d\u0027\\\u0027\u0027--subunit  neutron.tests.unit.test_api_v2.JSONV2TestCase\u0027\\\u0027\u0027\u0027\n++ echo neutron.tests.unit.test_api_v2.JSONV2TestCase\n++ tr . /\n++ grep -o \u0027neutron\\.tests[^[:space:]:]\\+\u0027\n+ OS_TEST_PATH\u003dneutron/tests/unit/test_api_v2/JSONV2TestCase\n+ \u0027[\u0027 -n neutron/tests/unit/test_api_v2/JSONV2TestCase \u0027]\u0027\n++ dirname neutron/tests/unit/test_api_v2/JSONV2TestCase\n+ os_test_dir\u003dneutron/tests/unit/test_api_v2\n+ \u0027[\u0027 -d neutron/tests/unit/test_api_v2/JSONV2TestCase \u0027]\u0027\n+ \u0027[\u0027 -d neutron/tests/unit/test_api_v2 \u0027]\u0027\n\nthe OS_TEST_PATH is not set.\n\nand if I run:\n ./run_tests.sh -N  neutron.tests.unit.test_api_v2:JSONV2TestCase\n\nI got:\n++ echo neutron.tests.unit.test_api_v2:JSONV2TestCase\n++ grep -o \u0027neutron\\.tests[^[:space:]:]\\+\u0027\n++ tr . /\n+ OS_TEST_PATH\u003dneutron/tests/unit/test_api_v2\n+ \u0027[\u0027 -n neutron/tests/unit/test_api_v2 \u0027]\u0027\n++ dirname neutron/tests/unit/test_api_v2\n+ os_test_dir\u003dneutron/tests/unit\n+ \u0027[\u0027 -d neutron/tests/unit/test_api_v2 \u0027]\u0027\n+ \u0027[\u0027 -d neutron/tests/unit \u0027]\u0027\n+ wrapper\u003d\u0027OS_TEST_PATH\u003dneutron/tests/unit \u0027\n\nthe OS_TEST_PATH is set, but I cannot get any cases run.","commit_id":"bf2057c6f1ae538d721c3d33df09f247572c2d66"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"3ff8ef61f2cb48f3b1bbd050ec1820aef3cdc2e3","unresolved":false,"context_lines":[{"line_number":145,"context_line":"  elif [ -d \"$os_test_dir\" ]; then"},{"line_number":146,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$os_test_dir $wrapper\""},{"line_number":147,"context_line":"  fi"},{"line_number":148,"context_line":"  echo \"Running \\`${wrapper} $TESTRTESTS\\`\""},{"line_number":149,"context_line":"  bash -c \"${wrapper} $TESTRTESTS | ${wrapper} subunit2pyunit\""},{"line_number":150,"context_line":"  RESULT\u003d$?"},{"line_number":151,"context_line":"  set -e"}],"source_content_type":"text/x-sh","patch_set":7,"id":"5a890539_a7a37ffe","line":148,"in_reply_to":"5a890539_0c0b982a","updated":"2014-11-16 15:04:55.000000000","message":"I am trying to use : way to run cases, I think it is the intent of line 137 OS_TEST_PATH\u003d`echo $testargs|grep -o \u0027neutron\\.tests[^[:space:]:]\\+\u0027|tr . /`.\n\nalso:\nhow about running:\n./run_tests.sh neutron.tests.unit.services.loadbalancer.test_loadbalancer_plugin.LoadBalancerExtensionTestCase.test_pool_create","commit_id":"bf2057c6f1ae538d721c3d33df09f247572c2d66"},{"author":{"_account_id":10980,"name":"Doug Wiegley","email":"dougwig@parkside.io","username":"dougw"},"change_message_id":"1b5cbbeb27bcfac076fe9b098a596a26faa3d318","unresolved":false,"context_lines":[{"line_number":145,"context_line":"  elif [ -d \"$os_test_dir\" ]; then"},{"line_number":146,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$os_test_dir $wrapper\""},{"line_number":147,"context_line":"  fi"},{"line_number":148,"context_line":"  echo \"Running \\`${wrapper} $TESTRTESTS\\`\""},{"line_number":149,"context_line":"  bash -c \"${wrapper} $TESTRTESTS | ${wrapper} subunit2pyunit\""},{"line_number":150,"context_line":"  RESULT\u003d$?"},{"line_number":151,"context_line":"  set -e"}],"source_content_type":"text/x-sh","patch_set":7,"id":"5a890539_0c0b982a","line":148,"in_reply_to":"5a890539_5b01dc04","updated":"2014-11-16 14:39:02.000000000","message":"I used this, with a bunch of varieties:\n\n./run_tests.sh neutron.tests.unit.services.loadbalancer\n\n...\nneutron.tests.unit.services.loadbalancer.test_loadbalancer_plugin.LoadBalancerExtensionTestCase.test_pool_create ... ok\n...\n\nIt\u0027s not working at all for you?  Thanks.","commit_id":"bf2057c6f1ae538d721c3d33df09f247572c2d66"},{"author":{"_account_id":10980,"name":"Doug Wiegley","email":"dougwig@parkside.io","username":"dougw"},"change_message_id":"c153c6f59ed9e97b178dd3a47dd92b084b9fdcab","unresolved":false,"context_lines":[{"line_number":145,"context_line":"  elif [ -d \"$os_test_dir\" ]; then"},{"line_number":146,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$os_test_dir $wrapper\""},{"line_number":147,"context_line":"  fi"},{"line_number":148,"context_line":"  echo \"Running \\`${wrapper} $TESTRTESTS\\`\""},{"line_number":149,"context_line":"  bash -c \"${wrapper} $TESTRTESTS | ${wrapper} subunit2pyunit\""},{"line_number":150,"context_line":"  RESULT\u003d$?"},{"line_number":151,"context_line":"  set -e"}],"source_content_type":"text/x-sh","patch_set":7,"id":"5a890539_e7b10790","line":148,"in_reply_to":"5a890539_a7a37ffe","updated":"2014-11-16 15:41:01.000000000","message":"So usually the : syntax is meant to reference a method inside of a class, so:\n\nneutron.tests.unit.services.loadbalancer.test_loadbalancer_plugin.LoadBalancerExtensionTestCase:test_pool_create\n\n... that\u0027s never worked before and after this patch.\n\nBUT.  The : in that pattern, unless someone knows different, appears to be specifying a delimiter between test sets (any space or a colon), likely so you can have an env var without spaces in it.  Note the results of this:\n\necho neutron.tests.a.b.c:d:neutron.tests.d.e.f |grep -o \u0027neutron\\.tests[^[:space:]:]\\+\u0027|tr . /\n\n:d gets tossed, since it lacks the neutron.tests prefix, in this and earlier versions of the script, but you do get multiple test modules.  The results are the same before and after this patch; it just works on a mac now.\n\nThis was likely a poor choice of delimiter, but I have no idea how widely used the current syntax is, nor is changing that the intent of this fix.","commit_id":"bf2057c6f1ae538d721c3d33df09f247572c2d66"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"a2ba12fbec37a57f074716c8e1278ab463b33af2","unresolved":false,"context_lines":[{"line_number":145,"context_line":"  elif [ -d \"$os_test_dir\" ]; then"},{"line_number":146,"context_line":"      wrapper\u003d\"OS_TEST_PATH\u003d$os_test_dir $wrapper\""},{"line_number":147,"context_line":"  fi"},{"line_number":148,"context_line":"  echo \"Running \\`${wrapper} $TESTRTESTS\\`\""},{"line_number":149,"context_line":"  bash -c \"${wrapper} $TESTRTESTS | ${wrapper} subunit2pyunit\""},{"line_number":150,"context_line":"  RESULT\u003d$?"},{"line_number":151,"context_line":"  set -e"}],"source_content_type":"text/x-sh","patch_set":7,"id":"3a961159_ff2bd27f","line":148,"in_reply_to":"5a890539_e7b10790","updated":"2014-12-09 06:43:15.000000000","message":"now it makes sense to me. thanks","commit_id":"bf2057c6f1ae538d721c3d33df09f247572c2d66"}]}
