{"action":"created","comment":{"url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/comments/50384533","id":50384533,"diff_hunk":"@@ -907,6 +907,35 @@ def parallel(targets):\n     return [t.join() for t in threads]\n \n \n+def check_cpu_flag(cpu_flag):\n+    \"\"\"\n+    Check the cpu_flag in host.\n+\n+    params: cpu_flag: The cpu flag which is need checked on host.\n+    \"\"\"\n+    error_context.context(\"Check whether the host support %s.\" % cpu_flag)\n+    cpuinfo = file('/proc/cpuinfo').read()\n+    if cpu_flag not in cpuinfo:\n+        raise exceptions.TestNAError(\"Host does not support %s flag in host.\" %\n+                                     cpu_flag)\n+\n+\n+def check_kernel_cmdline(match_str):","path":"virttest/utils_misc.py","position":17,"original_position":17,"commit_id":"b311a1dfb3535e6f3f9cffa60be406ffbe078d7b","original_commit_id":"b311a1dfb3535e6f3f9cffa60be406ffbe078d7b","user":{"login":"xutian","id":1871732,"avatar_url":"https://avatars.githubusercontent.com/u/1871732?v=3","gravatar_id":"","url":"https://api.github.com/users/xutian","html_url":"https://github.com/xutian","followers_url":"https://api.github.com/users/xutian/followers","following_url":"https://api.github.com/users/xutian/following{/other_user}","gists_url":"https://api.github.com/users/xutian/gists{/gist_id}","starred_url":"https://api.github.com/users/xutian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xutian/subscriptions","organizations_url":"https://api.github.com/users/xutian/orgs","repos_url":"https://api.github.com/users/xutian/repos","events_url":"https://api.github.com/users/xutian/events{/privacy}","received_events_url":"https://api.github.com/users/xutian/received_events","type":"User","site_admin":false},"body":"def get_kernel_cmdline():\r\n      return xxx\r\n","created_at":"2016-01-21T10:38:31Z","updated_at":"2016-01-21T10:38:31Z","html_url":"https://github.com/avocado-framework/avocado-vt/pull/124#discussion_r50384533","pull_request_url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/124","_links":{"self":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/comments/50384533"},"html":{"href":"https://github.com/avocado-framework/avocado-vt/pull/124#discussion_r50384533"},"pull_request":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/124"}}},"pull_request":{"url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/124","id":44896073,"html_url":"https://github.com/avocado-framework/avocado-vt/pull/124","diff_url":"https://github.com/avocado-framework/avocado-vt/pull/124.diff","patch_url":"https://github.com/avocado-framework/avocado-vt/pull/124.patch","issue_url":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/124","number":124,"state":"open","locked":false,"title":"virttest/test_setup.py: check 1G hugepage support.","user":{"login":"CongSmile","id":5235330,"avatar_url":"https://avatars.githubusercontent.com/u/5235330?v=3","gravatar_id":"","url":"https://api.github.com/users/CongSmile","html_url":"https://github.com/CongSmile","followers_url":"https://api.github.com/users/CongSmile/followers","following_url":"https://api.github.com/users/CongSmile/following{/other_user}","gists_url":"https://api.github.com/users/CongSmile/gists{/gist_id}","starred_url":"https://api.github.com/users/CongSmile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CongSmile/subscriptions","organizations_url":"https://api.github.com/users/CongSmile/orgs","repos_url":"https://api.github.com/users/CongSmile/repos","events_url":"https://api.github.com/users/CongSmile/events{/privacy}","received_events_url":"https://api.github.com/users/CongSmile/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Cong Li <coli@redhat.com>\r\n\r\nid: 1204060\r\n\r\nPrevious PR under virt-test is:\r\nautotest/virt-test#2277","created_at":"2015-09-14T06:15:50Z","updated_at":"2016-01-21T10:38:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"00bdc63c07b6fcfa6907d4176fc854c28615a1b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/124/commits","review_comments_url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/124/comments","review_comment_url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/124/comments","statuses_url":"https://api.github.com/repos/avocado-framework/avocado-vt/statuses/b311a1dfb3535e6f3f9cffa60be406ffbe078d7b","head":{"label":"CongSmile:1G_hugepage","ref":"1G_hugepage","sha":"b311a1dfb3535e6f3f9cffa60be406ffbe078d7b","user":{"login":"CongSmile","id":5235330,"avatar_url":"https://avatars.githubusercontent.com/u/5235330?v=3","gravatar_id":"","url":"https://api.github.com/users/CongSmile","html_url":"https://github.com/CongSmile","followers_url":"https://api.github.com/users/CongSmile/followers","following_url":"https://api.github.com/users/CongSmile/following{/other_user}","gists_url":"https://api.github.com/users/CongSmile/gists{/gist_id}","starred_url":"https://api.github.com/users/CongSmile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CongSmile/subscriptions","organizations_url":"https://api.github.com/users/CongSmile/orgs","repos_url":"https://api.github.com/users/CongSmile/repos","events_url":"https://api.github.com/users/CongSmile/events{/privacy}","received_events_url":"https://api.github.com/users/CongSmile/received_events","type":"User","site_admin":false},"repo":{"id":42293599,"name":"avocado-vt","full_name":"CongSmile/avocado-vt","owner":{"login":"CongSmile","id":5235330,"avatar_url":"https://avatars.githubusercontent.com/u/5235330?v=3","gravatar_id":"","url":"https://api.github.com/users/CongSmile","html_url":"https://github.com/CongSmile","followers_url":"https://api.github.com/users/CongSmile/followers","following_url":"https://api.github.com/users/CongSmile/following{/other_user}","gists_url":"https://api.github.com/users/CongSmile/gists{/gist_id}","starred_url":"https://api.github.com/users/CongSmile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CongSmile/subscriptions","organizations_url":"https://api.github.com/users/CongSmile/orgs","repos_url":"https://api.github.com/users/CongSmile/repos","events_url":"https://api.github.com/users/CongSmile/events{/privacy}","received_events_url":"https://api.github.com/users/CongSmile/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CongSmile/avocado-vt","description":"Avocado VT Plugin","fork":true,"url":"https://api.github.com/repos/CongSmile/avocado-vt","forks_url":"https://api.github.com/repos/CongSmile/avocado-vt/forks","keys_url":"https://api.github.com/repos/CongSmile/avocado-vt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CongSmile/avocado-vt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CongSmile/avocado-vt/teams","hooks_url":"https://api.github.com/repos/CongSmile/avocado-vt/hooks","issue_events_url":"https://api.github.com/repos/CongSmile/avocado-vt/issues/events{/number}","events_url":"https://api.github.com/repos/CongSmile/avocado-vt/events","assignees_url":"https://api.github.com/repos/CongSmile/avocado-vt/assignees{/user}","branches_url":"https://api.github.com/repos/CongSmile/avocado-vt/branches{/branch}","tags_url":"https://api.github.com/repos/CongSmile/avocado-vt/tags","blobs_url":"https://api.github.com/repos/CongSmile/avocado-vt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CongSmile/avocado-vt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CongSmile/avocado-vt/git/refs{/sha}","trees_url":"https://api.github.com/repos/CongSmile/avocado-vt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CongSmile/avocado-vt/statuses/{sha}","languages_url":"https://api.github.com/repos/CongSmile/avocado-vt/languages","stargazers_url":"https://api.github.com/repos/CongSmile/avocado-vt/stargazers","contributors_url":"https://api.github.com/repos/CongSmile/avocado-vt/contributors","subscribers_url":"https://api.github.com/repos/CongSmile/avocado-vt/subscribers","subscription_url":"https://api.github.com/repos/CongSmile/avocado-vt/subscription","commits_url":"https://api.github.com/repos/CongSmile/avocado-vt/commits{/sha}","git_commits_url":"https://api.github.com/repos/CongSmile/avocado-vt/git/commits{/sha}","comments_url":"https://api.github.com/repos/CongSmile/avocado-vt/comments{/number}","issue_comment_url":"https://api.github.com/repos/CongSmile/avocado-vt/issues/comments{/number}","contents_url":"https://api.github.com/repos/CongSmile/avocado-vt/contents/{+path}","compare_url":"https://api.github.com/repos/CongSmile/avocado-vt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CongSmile/avocado-vt/merges","archive_url":"https://api.github.com/repos/CongSmile/avocado-vt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CongSmile/avocado-vt/downloads","issues_url":"https://api.github.com/repos/CongSmile/avocado-vt/issues{/number}","pulls_url":"https://api.github.com/repos/CongSmile/avocado-vt/pulls{/number}","milestones_url":"https://api.github.com/repos/CongSmile/avocado-vt/milestones{/number}","notifications_url":"https://api.github.com/repos/CongSmile/avocado-vt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CongSmile/avocado-vt/labels{/name}","releases_url":"https://api.github.com/repos/CongSmile/avocado-vt/releases{/id}","created_at":"2015-09-11T07:13:31Z","updated_at":"2015-09-11T07:13:33Z","pushed_at":"2016-01-21T10:03:19Z","git_url":"git://github.com/CongSmile/avocado-vt.git","ssh_url":"git@github.com:CongSmile/avocado-vt.git","clone_url":"https://github.com/CongSmile/avocado-vt.git","svn_url":"https://github.com/CongSmile/avocado-vt","homepage":"http://avocado-vt.readthedocs.org/","size":19010,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"avocado-framework:master","ref":"master","sha":"3f6b6e993ef58eef3f6b2d0fa559c670fae3c958","user":{"login":"avocado-framework","id":7245719,"avatar_url":"https://avatars.githubusercontent.com/u/7245719?v=3","gravatar_id":"","url":"https://api.github.com/users/avocado-framework","html_url":"https://github.com/avocado-framework","followers_url":"https://api.github.com/users/avocado-framework/followers","following_url":"https://api.github.com/users/avocado-framework/following{/other_user}","gists_url":"https://api.github.com/users/avocado-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/avocado-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avocado-framework/subscriptions","organizations_url":"https://api.github.com/users/avocado-framework/orgs","repos_url":"https://api.github.com/users/avocado-framework/repos","events_url":"https://api.github.com/users/avocado-framework/events{/privacy}","received_events_url":"https://api.github.com/users/avocado-framework/received_events","type":"Organization","site_admin":false},"repo":{"id":36371959,"name":"avocado-vt","full_name":"avocado-framework/avocado-vt","owner":{"login":"avocado-framework","id":7245719,"avatar_url":"https://avatars.githubusercontent.com/u/7245719?v=3","gravatar_id":"","url":"https://api.github.com/users/avocado-framework","html_url":"https://github.com/avocado-framework","followers_url":"https://api.github.com/users/avocado-framework/followers","following_url":"https://api.github.com/users/avocado-framework/following{/other_user}","gists_url":"https://api.github.com/users/avocado-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/avocado-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avocado-framework/subscriptions","organizations_url":"https://api.github.com/users/avocado-framework/orgs","repos_url":"https://api.github.com/users/avocado-framework/repos","events_url":"https://api.github.com/users/avocado-framework/events{/privacy}","received_events_url":"https://api.github.com/users/avocado-framework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/avocado-framework/avocado-vt","description":"Avocado VT Plugin","fork":false,"url":"https://api.github.com/repos/avocado-framework/avocado-vt","forks_url":"https://api.github.com/repos/avocado-framework/avocado-vt/forks","keys_url":"https://api.github.com/repos/avocado-framework/avocado-vt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avocado-framework/avocado-vt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avocado-framework/avocado-vt/teams","hooks_url":"https://api.github.com/repos/avocado-framework/avocado-vt/hooks","issue_events_url":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/events{/number}","events_url":"https://api.github.com/repos/avocado-framework/avocado-vt/events","assignees_url":"https://api.github.com/repos/avocado-framework/avocado-vt/assignees{/user}","branches_url":"https://api.github.com/repos/avocado-framework/avocado-vt/branches{/branch}","tags_url":"https://api.github.com/repos/avocado-framework/avocado-vt/tags","blobs_url":"https://api.github.com/repos/avocado-framework/avocado-vt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avocado-framework/avocado-vt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avocado-framework/avocado-vt/git/refs{/sha}","trees_url":"https://api.github.com/repos/avocado-framework/avocado-vt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avocado-framework/avocado-vt/statuses/{sha}","languages_url":"https://api.github.com/repos/avocado-framework/avocado-vt/languages","stargazers_url":"https://api.github.com/repos/avocado-framework/avocado-vt/stargazers","contributors_url":"https://api.github.com/repos/avocado-framework/avocado-vt/contributors","subscribers_url":"https://api.github.com/repos/avocado-framework/avocado-vt/subscribers","subscription_url":"https://api.github.com/repos/avocado-framework/avocado-vt/subscription","commits_url":"https://api.github.com/repos/avocado-framework/avocado-vt/commits{/sha}","git_commits_url":"https://api.github.com/repos/avocado-framework/avocado-vt/git/commits{/sha}","comments_url":"https://api.github.com/repos/avocado-framework/avocado-vt/comments{/number}","issue_comment_url":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/comments{/number}","contents_url":"https://api.github.com/repos/avocado-framework/avocado-vt/contents/{+path}","compare_url":"https://api.github.com/repos/avocado-framework/avocado-vt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avocado-framework/avocado-vt/merges","archive_url":"https://api.github.com/repos/avocado-framework/avocado-vt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avocado-framework/avocado-vt/downloads","issues_url":"https://api.github.com/repos/avocado-framework/avocado-vt/issues{/number}","pulls_url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls{/number}","milestones_url":"https://api.github.com/repos/avocado-framework/avocado-vt/milestones{/number}","notifications_url":"https://api.github.com/repos/avocado-framework/avocado-vt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avocado-framework/avocado-vt/labels{/name}","releases_url":"https://api.github.com/repos/avocado-framework/avocado-vt/releases{/id}","created_at":"2015-05-27T14:22:13Z","updated_at":"2016-01-13T06:32:56Z","pushed_at":"2016-01-21T10:25:49Z","git_url":"git://github.com/avocado-framework/avocado-vt.git","ssh_url":"git@github.com:avocado-framework/avocado-vt.git","clone_url":"https://github.com/avocado-framework/avocado-vt.git","svn_url":"https://github.com/avocado-framework/avocado-vt","homepage":"http://avocado-vt.readthedocs.org/","size":19299,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":28,"forks":36,"open_issues":28,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/124"},"html":{"href":"https://github.com/avocado-framework/avocado-vt/pull/124"},"issue":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/124"},"comments":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/124/comments"},"review_comments":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/124/comments"},"review_comment":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/124/commits"},"statuses":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/statuses/b311a1dfb3535e6f3f9cffa60be406ffbe078d7b"}}}}