{"action":"created","comment":{"url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/comments/60519698","id":60519698,"diff_hunk":"@@ -2616,13 +2623,18 @@ def do_migration(vm_name, uri, extra, auth_pwd, auth_user=\"root\",\n             else:\n                 logging.error(\"The real prompt text: <%s>\", text)\n                 break\n-\n+        log = session.get_output()\n         session.close()\n+        if return_ret_output is True:\n+            return (True, log)\n         return True","path":"virttest/utils_test/libvirt.py","position":null,"original_position":27,"commit_id":"d9320774abca52f69b8a1fcb89ad6ad2cbd7fbec","original_commit_id":"758fbeda322be385442744e326a68118736cba67","user":{"login":"dzhengfy","id":16040311,"avatar_url":"https://avatars.githubusercontent.com/u/16040311?v=3","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":"@waynesun09 , ok. I searched tp-libvirt, qemu and tp-spice, and no more use of this function. So I will change the return directly.","created_at":"2016-04-21T02:47:07Z","updated_at":"2016-04-21T02:47:07Z","html_url":"https://github.com/avocado-framework/avocado-vt/pull/462#discussion_r60519698","pull_request_url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/462","_links":{"self":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/comments/60519698"},"html":{"href":"https://github.com/avocado-framework/avocado-vt/pull/462#discussion_r60519698"},"pull_request":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/462"}}},"pull_request":{"url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/462","id":66985940,"html_url":"https://github.com/avocado-framework/avocado-vt/pull/462","diff_url":"https://github.com/avocado-framework/avocado-vt/pull/462.diff","patch_url":"https://github.com/avocado-framework/avocado-vt/pull/462.patch","issue_url":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/462","number":462,"state":"open","locked":false,"title":"utils_test/libvirt: support return output messages","user":{"login":"dzhengfy","id":16040311,"avatar_url":"https://avatars.githubusercontent.com/u/16040311?v=3","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":"Add a parameter to allow the migration function can return command\r\noutput messages which may be useful for the caller to parse.\r\n\r\nSigned-off-by: Dan Zheng <dzheng@redhat.com>","created_at":"2016-04-19T09:24:27Z","updated_at":"2016-04-21T02:47:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08f04bbae924e8e78d15ec9d0db2f7fda715294a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/462/commits","review_comments_url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/462/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/462/comments","statuses_url":"https://api.github.com/repos/avocado-framework/avocado-vt/statuses/d9320774abca52f69b8a1fcb89ad6ad2cbd7fbec","head":{"label":"dzhengfy:do_migration_return_output","ref":"do_migration_return_output","sha":"d9320774abca52f69b8a1fcb89ad6ad2cbd7fbec","user":{"login":"dzhengfy","id":16040311,"avatar_url":"https://avatars.githubusercontent.com/u/16040311?v=3","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,"name":"avocado-vt","full_name":"dzhengfy/avocado-vt","owner":{"login":"dzhengfy","id":16040311,"avatar_url":"https://avatars.githubusercontent.com/u/16040311?v=3","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":"2016-01-13T08:23:51Z","pushed_at":"2016-04-21T02:45:13Z","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":19247,"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":"029a85c434da7ee0c19e0a63fc1d67f5bddd5070","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}","deployments_url":"https://api.github.com/repos/avocado-framework/avocado-vt/deployments","created_at":"2015-05-27T14:22:13Z","updated_at":"2016-04-12T03:00:31Z","pushed_at":"2016-04-21T02:45:13Z","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":19519,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":46,"mirror_url":null,"open_issues_count":44,"forks":46,"open_issues":44,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/462"},"html":{"href":"https://github.com/avocado-framework/avocado-vt/pull/462"},"issue":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/462"},"comments":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/462/comments"},"review_comments":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/462/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/462/commits"},"statuses":{"href":"https://api.github.com/repos/avocado-framework/avocado-vt/statuses/d9320774abca52f69b8a1fcb89ad6ad2cbd7fbec"}}}}