{"action":"created","comment":{"url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/comments/200009750","pull_request_review_id":134239301,"id":200009750,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDAwOTc1MA==","diff_hunk":"@@ -3531,3 +3531,22 @@ def customize_libvirt_config(params,\n                                   status_error='no')\n \n     return obj_conf\n+\n+\n+def check_qemu_cmd_line(content, err_ignore=False):\n+    \"\"\"\n+    Check the specified content in the qemu command line\n+    :param content: the desired string to search\n+    :param err_ignore: True to return False when fail\n+                       False to raise exception when fail\n+    :return: True if exist, False otherwise\n+    \"\"\"\n+    cmd = 'ps -ef|grep qemu|grep -v grep'","path":"virttest/utils_test/libvirt.py","position":14,"original_position":14,"commit_id":"f151a6cd1ad71b3535b7a10ad54bcbc589432c3a","original_commit_id":"f151a6cd1ad71b3535b7a10ad54bcbc589432c3a","user":{"login":"xutian","id":1871732,"node_id":"MDQ6VXNlcjE4NzE3MzI=","avatar_url":"https://avatars0.githubusercontent.com/u/1871732?v=4","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":"you can use  command \"pgrep -a qemu\"  directly.","created_at":"2018-07-04T05:12:08Z","updated_at":"2018-07-04T05:12:08Z","html_url":"https://github.com/avocado-framework/avocado-vt/pull/1652#discussion_r200009750","pull_request_url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/1652","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/comments/200009750"},"html":{"href":"https://github.com/avocado-framework/avocado-vt/pull/1652#discussion_r200009750"},"pull_request":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/1652"}}},"pull_request":{"url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/1652","id":199128409,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MTI4NDA5","html_url":"https://github.com/avocado-framework/avocado-vt/pull/1652","diff_url":"https://github.com/avocado-framework/avocado-vt/pull/1652.diff","patch_url":"https://github.com/avocado-framework/avocado-vt/pull/1652.patch","issue_url":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/1652","number":1652,"state":"open","locked":false,"title":"utils_test.libvirt: Add check qemu command line func","user":{"login":"dzhengfy","id":16040311,"node_id":"MDQ6VXNlcjE2MDQwMzEx","avatar_url":"https://avatars0.githubusercontent.com/u/16040311?v=4","gravatar_id":"","url":"https://api.github.com/users/dzhengfy","html_url":"https://github.com/dzhengfy","followers_url":"https://api.github.com/users/dzhengfy/followers","following_url":"https://api.github.com/users/dzhengfy/following{/other_user}","gists_url":"https://api.github.com/users/dzhengfy/gists{/gist_id}","starred_url":"https://api.github.com/users/dzhengfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzhengfy/subscriptions","organizations_url":"https://api.github.com/users/dzhengfy/orgs","repos_url":"https://api.github.com/users/dzhengfy/repos","events_url":"https://api.github.com/users/dzhengfy/events{/privacy}","received_events_url":"https://api.github.com/users/dzhengfy/received_events","type":"User","site_admin":false},"body":"This is to check if specified content exists in the qemu command line.\r\n\r\nSigned-off-by: Dan Zheng <dzheng@redhat.com>","created_at":"2018-07-04T03:06:19Z","updated_at":"2018-07-04T05:12:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4cc543e3d8da7ae7e97e84ec28f3a495419e4330","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/1652/commits","review_comments_url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/1652/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/1652/comments","statuses_url":"https://api.github.com/repos/avocado-framework/avocado-vt/statuses/f151a6cd1ad71b3535b7a10ad54bcbc589432c3a","head":{"label":"dzhengfy:add_qemu_cmd_check","ref":"add_qemu_cmd_check","sha":"f151a6cd1ad71b3535b7a10ad54bcbc589432c3a","user":{"login":"dzhengfy","id":16040311,"node_id":"MDQ6VXNlcjE2MDQwMzEx","avatar_url":"https://avatars0.githubusercontent.com/u/16040311?v=4","gravatar_id":"","url":"https://api.github.com/users/dzhengfy","html_url":"https://github.com/dzhengfy","followers_url":"https://api.github.com/users/dzhengfy/followers","following_url":"https://api.github.com/users/dzhengfy/following{/other_user}","gists_url":"https://api.github.com/users/dzhengfy/gists{/gist_id}","starred_url":"https://api.github.com/users/dzhengfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzhengfy/subscriptions","organizations_url":"https://api.github.com/users/dzhengfy/orgs","repos_url":"https://api.github.com/users/dzhengfy/repos","events_url":"https://api.github.com/users/dzhengfy/events{/privacy}","received_events_url":"https://api.github.com/users/dzhengfy/received_events","type":"User","site_admin":false},"repo":{"id":47093050,"node_id":"MDEwOlJlcG9zaXRvcnk0NzA5MzA1MA==","name":"avocado-vt","full_name":"dzhengfy/avocado-vt","owner":{"login":"dzhengfy","id":16040311,"node_id":"MDQ6VXNlcjE2MDQwMzEx","avatar_url":"https://avatars0.githubusercontent.com/u/16040311?v=4","gravatar_id":"","url":"https://api.github.com/users/dzhengfy","html_url":"https://github.com/dzhengfy","followers_url":"https://api.github.com/users/dzhengfy/followers","following_url":"https://api.github.com/users/dzhengfy/following{/other_user}","gists_url":"https://api.github.com/users/dzhengfy/gists{/gist_id}","starred_url":"https://api.github.com/users/dzhengfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzhengfy/subscriptions","organizations_url":"https://api.github.com/users/dzhengfy/orgs","repos_url":"https://api.github.com/users/dzhengfy/repos","events_url":"https://api.github.com/users/dzhengfy/events{/privacy}","received_events_url":"https://api.github.com/users/dzhengfy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dzhengfy/avocado-vt","description":"Avocado VT Plugin","fork":true,"url":"https://api.github.com/repos/dzhengfy/avocado-vt","forks_url":"https://api.github.com/repos/dzhengfy/avocado-vt/forks","keys_url":"https://api.github.com/repos/dzhengfy/avocado-vt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dzhengfy/avocado-vt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dzhengfy/avocado-vt/teams","hooks_url":"https://api.github.com/repos/dzhengfy/avocado-vt/hooks","issue_events_url":"https://api.github.com/repos/dzhengfy/avocado-vt/issues/events{/number}","events_url":"https://api.github.com/repos/dzhengfy/avocado-vt/events","assignees_url":"https://api.github.com/repos/dzhengfy/avocado-vt/assignees{/user}","branches_url":"https://api.github.com/repos/dzhengfy/avocado-vt/branches{/branch}","tags_url":"https://api.github.com/repos/dzhengfy/avocado-vt/tags","blobs_url":"https://api.github.com/repos/dzhengfy/avocado-vt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dzhengfy/avocado-vt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dzhengfy/avocado-vt/git/refs{/sha}","trees_url":"https://api.github.com/repos/dzhengfy/avocado-vt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dzhengfy/avocado-vt/statuses/{sha}","languages_url":"https://api.github.com/repos/dzhengfy/avocado-vt/languages","stargazers_url":"https://api.github.com/repos/dzhengfy/avocado-vt/stargazers","contributors_url":"https://api.github.com/repos/dzhengfy/avocado-vt/contributors","subscribers_url":"https://api.github.com/repos/dzhengfy/avocado-vt/subscribers","subscription_url":"https://api.github.com/repos/dzhengfy/avocado-vt/subscription","commits_url":"https://api.github.com/repos/dzhengfy/avocado-vt/commits{/sha}","git_commits_url":"https://api.github.com/repos/dzhengfy/avocado-vt/git/commits{/sha}","comments_url":"https://api.github.com/repos/dzhengfy/avocado-vt/comments{/number}","issue_comment_url":"https://api.github.com/repos/dzhengfy/avocado-vt/issues/comments{/number}","contents_url":"https://api.github.com/repos/dzhengfy/avocado-vt/contents/{+path}","compare_url":"https://api.github.com/repos/dzhengfy/avocado-vt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dzhengfy/avocado-vt/merges","archive_url":"https://api.github.com/repos/dzhengfy/avocado-vt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dzhengfy/avocado-vt/downloads","issues_url":"https://api.github.com/repos/dzhengfy/avocado-vt/issues{/number}","pulls_url":"https://api.github.com/repos/dzhengfy/avocado-vt/pulls{/number}","milestones_url":"https://api.github.com/repos/dzhengfy/avocado-vt/milestones{/number}","notifications_url":"https://api.github.com/repos/dzhengfy/avocado-vt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dzhengfy/avocado-vt/labels{/name}","releases_url":"https://api.github.com/repos/dzhengfy/avocado-vt/releases{/id}","deployments_url":"https://api.github.com/repos/dzhengfy/avocado-vt/deployments","created_at":"2015-11-30T03:26:00Z","updated_at":"2018-07-04T02:06:12Z","pushed_at":"2018-07-04T02:53:51Z","git_url":"git://github.com/dzhengfy/avocado-vt.git","ssh_url":"git@github.com:dzhengfy/avocado-vt.git","clone_url":"https://github.com/dzhengfy/avocado-vt.git","svn_url":"https://github.com/dzhengfy/avocado-vt","homepage":"http://avocado-vt.readthedocs.org/","size":28195,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"avocado-framework:master","ref":"master","sha":"d6550641c6ee638a2dd9f73149291b246270787d","user":{"login":"avocado-framework","id":7245719,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyNDU3MTk=","avatar_url":"https://avatars3.githubusercontent.com/u/7245719?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnkzNjM3MTk1OQ==","name":"avocado-vt","full_name":"avocado-framework/avocado-vt","owner":{"login":"avocado-framework","id":7245719,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyNDU3MTk=","avatar_url":"https://avatars3.githubusercontent.com/u/7245719?v=4","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}","deployments_url":"https://api.github.com/repos/avocado-framework/avocado-vt/deployments","created_at":"2015-05-27T14:22:13Z","updated_at":"2018-07-03T14:11:59Z","pushed_at":"2018-07-04T03:06:20Z","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":28175,"stargazers_count":34,"watchers_count":34,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":137,"mirror_url":null,"archived":false,"open_issues_count":130,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":137,"open_issues":130,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/1652"},"html":{"href":"https://github.com/avocado-framework/avocado-vt/pull/1652"},"issue":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/1652"},"comments":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/1652/comments"},"review_comments":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/1652/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/1652/commits"},"statuses":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/statuses/f151a6cd1ad71b3535b7a10ad54bcbc589432c3a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"xutian"}}