{"action":"created","comment":{"url":"https://api.github.com/repos/baidu/tera/pulls/comments/40099186","id":40099186,"diff_hunk":"@@ -0,0 +1,75 @@\n+################################################################################\n+#\n+# Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved\n+#\n+################################################################################\n+\"\"\"\n+This module provide common function for function_test.\n+\n+Authors: zhangmiao07(zhangmiao07@baidu.com)\n+Date:    2015/09/18 17:23:06\n+\"\"\"\n+\n+import subprocess\n+import nose.tools\n+\n+def print_debug_msg(sid=0, msg=\"\"):","path":"src/function_test/bin/testcase/common.py","position":16,"original_position":16,"commit_id":"6d69d1d28192817e2771ca76965dd80b9c304a15","original_commit_id":"6d69d1d28192817e2771ca76965dd80b9c304a15","user":{"login":"taocp","id":5194281,"avatar_url":"https://avatars.githubusercontent.com/u/5194281?v=3","gravatar_id":"","url":"https://api.github.com/users/taocp","html_url":"https://github.com/taocp","followers_url":"https://api.github.com/users/taocp/followers","following_url":"https://api.github.com/users/taocp/following{/other_user}","gists_url":"https://api.github.com/users/taocp/gists{/gist_id}","starred_url":"https://api.github.com/users/taocp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taocp/subscriptions","organizations_url":"https://api.github.com/users/taocp/orgs","repos_url":"https://api.github.com/users/taocp/repos","events_url":"https://api.github.com/users/taocp/events{/privacy}","received_events_url":"https://api.github.com/users/taocp/received_events","type":"User","site_admin":false},"body":"sid是什么意思？","created_at":"2015-09-22T15:17:39Z","updated_at":"2015-09-22T15:17:39Z","html_url":"https://github.com/baidu/tera/pull/349#discussion_r40099186","pull_request_url":"https://api.github.com/repos/baidu/tera/pulls/349","_links":{"self":{"href":"https://api.github.com/repos/baidu/tera/pulls/comments/40099186"},"html":{"href":"https://github.com/baidu/tera/pull/349#discussion_r40099186"},"pull_request":{"href":"https://api.github.com/repos/baidu/tera/pulls/349"}}},"pull_request":{"url":"https://api.github.com/repos/baidu/tera/pulls/349","id":45668273,"html_url":"https://github.com/baidu/tera/pull/349","diff_url":"https://github.com/baidu/tera/pull/349.diff","patch_url":"https://github.com/baidu/tera/pull/349.patch","issue_url":"https://api.github.com/repos/baidu/tera/issues/349","number":349,"state":"open","locked":false,"title":"#347 optimize ft code","user":{"login":"MichelleZ","id":10205478,"avatar_url":"https://avatars.githubusercontent.com/u/10205478?v=3","gravatar_id":"","url":"https://api.github.com/users/MichelleZ","html_url":"https://github.com/MichelleZ","followers_url":"https://api.github.com/users/MichelleZ/followers","following_url":"https://api.github.com/users/MichelleZ/following{/other_user}","gists_url":"https://api.github.com/users/MichelleZ/gists{/gist_id}","starred_url":"https://api.github.com/users/MichelleZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichelleZ/subscriptions","organizations_url":"https://api.github.com/users/MichelleZ/orgs","repos_url":"https://api.github.com/users/MichelleZ/repos","events_url":"https://api.github.com/users/MichelleZ/events{/privacy}","received_events_url":"https://api.github.com/users/MichelleZ/received_events","type":"User","site_admin":false},"body":"功能测试代码结构优化","created_at":"2015-09-22T14:14:46Z","updated_at":"2015-09-22T15:17:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81846c1b99f80058e4ef811fd637687217995694","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/baidu/tera/pulls/349/commits","review_comments_url":"https://api.github.com/repos/baidu/tera/pulls/349/comments","review_comment_url":"https://api.github.com/repos/baidu/tera/pulls/comments{/number}","comments_url":"https://api.github.com/repos/baidu/tera/issues/349/comments","statuses_url":"https://api.github.com/repos/baidu/tera/statuses/6d69d1d28192817e2771ca76965dd80b9c304a15","head":{"label":"MichelleZ:ft","ref":"ft","sha":"6d69d1d28192817e2771ca76965dd80b9c304a15","user":{"login":"MichelleZ","id":10205478,"avatar_url":"https://avatars.githubusercontent.com/u/10205478?v=3","gravatar_id":"","url":"https://api.github.com/users/MichelleZ","html_url":"https://github.com/MichelleZ","followers_url":"https://api.github.com/users/MichelleZ/followers","following_url":"https://api.github.com/users/MichelleZ/following{/other_user}","gists_url":"https://api.github.com/users/MichelleZ/gists{/gist_id}","starred_url":"https://api.github.com/users/MichelleZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichelleZ/subscriptions","organizations_url":"https://api.github.com/users/MichelleZ/orgs","repos_url":"https://api.github.com/users/MichelleZ/repos","events_url":"https://api.github.com/users/MichelleZ/events{/privacy}","received_events_url":"https://api.github.com/users/MichelleZ/received_events","type":"User","site_admin":false},"repo":{"id":42936028,"name":"tera","full_name":"MichelleZ/tera","owner":{"login":"MichelleZ","id":10205478,"avatar_url":"https://avatars.githubusercontent.com/u/10205478?v=3","gravatar_id":"","url":"https://api.github.com/users/MichelleZ","html_url":"https://github.com/MichelleZ","followers_url":"https://api.github.com/users/MichelleZ/followers","following_url":"https://api.github.com/users/MichelleZ/following{/other_user}","gists_url":"https://api.github.com/users/MichelleZ/gists{/gist_id}","starred_url":"https://api.github.com/users/MichelleZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichelleZ/subscriptions","organizations_url":"https://api.github.com/users/MichelleZ/orgs","repos_url":"https://api.github.com/users/MichelleZ/repos","events_url":"https://api.github.com/users/MichelleZ/events{/privacy}","received_events_url":"https://api.github.com/users/MichelleZ/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MichelleZ/tera","description":"A distributed, elastic, structured database.","fork":true,"url":"https://api.github.com/repos/MichelleZ/tera","forks_url":"https://api.github.com/repos/MichelleZ/tera/forks","keys_url":"https://api.github.com/repos/MichelleZ/tera/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MichelleZ/tera/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MichelleZ/tera/teams","hooks_url":"https://api.github.com/repos/MichelleZ/tera/hooks","issue_events_url":"https://api.github.com/repos/MichelleZ/tera/issues/events{/number}","events_url":"https://api.github.com/repos/MichelleZ/tera/events","assignees_url":"https://api.github.com/repos/MichelleZ/tera/assignees{/user}","branches_url":"https://api.github.com/repos/MichelleZ/tera/branches{/branch}","tags_url":"https://api.github.com/repos/MichelleZ/tera/tags","blobs_url":"https://api.github.com/repos/MichelleZ/tera/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MichelleZ/tera/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MichelleZ/tera/git/refs{/sha}","trees_url":"https://api.github.com/repos/MichelleZ/tera/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MichelleZ/tera/statuses/{sha}","languages_url":"https://api.github.com/repos/MichelleZ/tera/languages","stargazers_url":"https://api.github.com/repos/MichelleZ/tera/stargazers","contributors_url":"https://api.github.com/repos/MichelleZ/tera/contributors","subscribers_url":"https://api.github.com/repos/MichelleZ/tera/subscribers","subscription_url":"https://api.github.com/repos/MichelleZ/tera/subscription","commits_url":"https://api.github.com/repos/MichelleZ/tera/commits{/sha}","git_commits_url":"https://api.github.com/repos/MichelleZ/tera/git/commits{/sha}","comments_url":"https://api.github.com/repos/MichelleZ/tera/comments{/number}","issue_comment_url":"https://api.github.com/repos/MichelleZ/tera/issues/comments{/number}","contents_url":"https://api.github.com/repos/MichelleZ/tera/contents/{+path}","compare_url":"https://api.github.com/repos/MichelleZ/tera/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MichelleZ/tera/merges","archive_url":"https://api.github.com/repos/MichelleZ/tera/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MichelleZ/tera/downloads","issues_url":"https://api.github.com/repos/MichelleZ/tera/issues{/number}","pulls_url":"https://api.github.com/repos/MichelleZ/tera/pulls{/number}","milestones_url":"https://api.github.com/repos/MichelleZ/tera/milestones{/number}","notifications_url":"https://api.github.com/repos/MichelleZ/tera/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MichelleZ/tera/labels{/name}","releases_url":"https://api.github.com/repos/MichelleZ/tera/releases{/id}","created_at":"2015-09-22T13:39:43Z","updated_at":"2015-09-22T13:39:46Z","pushed_at":"2015-09-22T14:12:13Z","git_url":"git://github.com/MichelleZ/tera.git","ssh_url":"git@github.com:MichelleZ/tera.git","clone_url":"https://github.com/MichelleZ/tera.git","svn_url":"https://github.com/MichelleZ/tera","homepage":"","size":15853,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"baidu:master","ref":"master","sha":"776c00552793eb00e823f0914db826be691b8170","user":{"login":"baidu","id":13245940,"avatar_url":"https://avatars.githubusercontent.com/u/13245940?v=3","gravatar_id":"","url":"https://api.github.com/users/baidu","html_url":"https://github.com/baidu","followers_url":"https://api.github.com/users/baidu/followers","following_url":"https://api.github.com/users/baidu/following{/other_user}","gists_url":"https://api.github.com/users/baidu/gists{/gist_id}","starred_url":"https://api.github.com/users/baidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baidu/subscriptions","organizations_url":"https://api.github.com/users/baidu/orgs","repos_url":"https://api.github.com/users/baidu/repos","events_url":"https://api.github.com/users/baidu/events{/privacy}","received_events_url":"https://api.github.com/users/baidu/received_events","type":"Organization","site_admin":false},"repo":{"id":18129915,"name":"tera","full_name":"baidu/tera","owner":{"login":"baidu","id":13245940,"avatar_url":"https://avatars.githubusercontent.com/u/13245940?v=3","gravatar_id":"","url":"https://api.github.com/users/baidu","html_url":"https://github.com/baidu","followers_url":"https://api.github.com/users/baidu/followers","following_url":"https://api.github.com/users/baidu/following{/other_user}","gists_url":"https://api.github.com/users/baidu/gists{/gist_id}","starred_url":"https://api.github.com/users/baidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baidu/subscriptions","organizations_url":"https://api.github.com/users/baidu/orgs","repos_url":"https://api.github.com/users/baidu/repos","events_url":"https://api.github.com/users/baidu/events{/privacy}","received_events_url":"https://api.github.com/users/baidu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/baidu/tera","description":"A distributed, elastic, structured database.","fork":false,"url":"https://api.github.com/repos/baidu/tera","forks_url":"https://api.github.com/repos/baidu/tera/forks","keys_url":"https://api.github.com/repos/baidu/tera/keys{/key_id}","collaborators_url":"https://api.github.com/repos/baidu/tera/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/baidu/tera/teams","hooks_url":"https://api.github.com/repos/baidu/tera/hooks","issue_events_url":"https://api.github.com/repos/baidu/tera/issues/events{/number}","events_url":"https://api.github.com/repos/baidu/tera/events","assignees_url":"https://api.github.com/repos/baidu/tera/assignees{/user}","branches_url":"https://api.github.com/repos/baidu/tera/branches{/branch}","tags_url":"https://api.github.com/repos/baidu/tera/tags","blobs_url":"https://api.github.com/repos/baidu/tera/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/baidu/tera/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/baidu/tera/git/refs{/sha}","trees_url":"https://api.github.com/repos/baidu/tera/git/trees{/sha}","statuses_url":"https://api.github.com/repos/baidu/tera/statuses/{sha}","languages_url":"https://api.github.com/repos/baidu/tera/languages","stargazers_url":"https://api.github.com/repos/baidu/tera/stargazers","contributors_url":"https://api.github.com/repos/baidu/tera/contributors","subscribers_url":"https://api.github.com/repos/baidu/tera/subscribers","subscription_url":"https://api.github.com/repos/baidu/tera/subscription","commits_url":"https://api.github.com/repos/baidu/tera/commits{/sha}","git_commits_url":"https://api.github.com/repos/baidu/tera/git/commits{/sha}","comments_url":"https://api.github.com/repos/baidu/tera/comments{/number}","issue_comment_url":"https://api.github.com/repos/baidu/tera/issues/comments{/number}","contents_url":"https://api.github.com/repos/baidu/tera/contents/{+path}","compare_url":"https://api.github.com/repos/baidu/tera/compare/{base}...{head}","merges_url":"https://api.github.com/repos/baidu/tera/merges","archive_url":"https://api.github.com/repos/baidu/tera/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/baidu/tera/downloads","issues_url":"https://api.github.com/repos/baidu/tera/issues{/number}","pulls_url":"https://api.github.com/repos/baidu/tera/pulls{/number}","milestones_url":"https://api.github.com/repos/baidu/tera/milestones{/number}","notifications_url":"https://api.github.com/repos/baidu/tera/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/baidu/tera/labels{/name}","releases_url":"https://api.github.com/repos/baidu/tera/releases{/id}","created_at":"2014-03-26T07:22:05Z","updated_at":"2015-09-20T12:11:20Z","pushed_at":"2015-09-22T14:14:46Z","git_url":"git://github.com/baidu/tera.git","ssh_url":"git@github.com:baidu/tera.git","clone_url":"https://github.com/baidu/tera.git","svn_url":"https://github.com/baidu/tera","homepage":"","size":15853,"stargazers_count":285,"watchers_count":285,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":88,"mirror_url":null,"open_issues_count":49,"forks":88,"open_issues":49,"watchers":285,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/baidu/tera/pulls/349"},"html":{"href":"https://github.com/baidu/tera/pull/349"},"issue":{"href":"https://api.github.com/repos/baidu/tera/issues/349"},"comments":{"href":"https://api.github.com/repos/baidu/tera/issues/349/comments"},"review_comments":{"href":"https://api.github.com/repos/baidu/tera/pulls/349/comments"},"review_comment":{"href":"https://api.github.com/repos/baidu/tera/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/baidu/tera/pulls/349/commits"},"statuses":{"href":"https://api.github.com/repos/baidu/tera/statuses/6d69d1d28192817e2771ca76965dd80b9c304a15"}}}}