{"action":"created","comment":{"url":"https://api.github.com/repos/autotest/tp-qemu/pulls/comments/83137807","pull_request_review_id":3998163,"id":83137807,"diff_hunk":"@@ -0,0 +1,174 @@\n+import os\n+import time\n+import logging\n+\n+from autotest.client import utils\n+from autotest.client.shared import error\n+\n+from virttest import storage\n+from virttest import utils_misc\n+from virttest import data_dir\n+\n+from qemu.tests import blk_commit\n+\n+\n+class BlockCommitStress(blk_commit.BlockCommit):\n+\n+    def __init__(self, test, params, env, tag):\n+        super(BlockCommitStress, self).__init__(test, params, env, tag)\n+\n+    def parser_test_args(self):\n+        \"\"\"\n+        set default values and check core commands has configured;\n+        \"\"\"\n+        params = super(BlockCommitStress, self).parser_test_args()\n+        for param in [\"start_cmd\", \"stop_cmd\", \"check_cmd\"]:\n+            if not params.get(param):\n+                raise error.TestFail(\"%s not configured,please check your\"\n+                                     \"configuration at first\")\n+        return params\n+\n+    @error.context_aware\n+    def install_stress_app(self):","path":"qemu/tests/block_commit_stress.py","position":32,"original_position":32,"commit_id":"042059bd4d3596fa8d435f6b9fa254e363844925","original_commit_id":"042059bd4d3596fa8d435f6b9fa254e363844925","user":{"login":"CongLi","id":5235330,"avatar_url":"https://avatars.githubusercontent.com/u/5235330?v=3","gravatar_id":"","url":"https://api.github.com/users/CongLi","html_url":"https://github.com/CongLi","followers_url":"https://api.github.com/users/CongLi/followers","following_url":"https://api.github.com/users/CongLi/following{/other_user}","gists_url":"https://api.github.com/users/CongLi/gists{/gist_id}","starred_url":"https://api.github.com/users/CongLi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CongLi/subscriptions","organizations_url":"https://api.github.com/users/CongLi/orgs","repos_url":"https://api.github.com/users/CongLi/repos","events_url":"https://api.github.com/users/CongLi/events{/privacy}","received_events_url":"https://api.github.com/users/CongLi/received_events","type":"User","site_admin":false},"body":"For stress test, can use autotest_control.stress, no need install it.","created_at":"2016-10-13T03:05:31Z","updated_at":"2016-10-13T03:21:18Z","html_url":"https://github.com/autotest/tp-qemu/pull/762#discussion_r83137807","pull_request_url":"https://api.github.com/repos/autotest/tp-qemu/pulls/762","_links":{"self":{"href":"https://api.github.com/repos/autotest/tp-qemu/pulls/comments/83137807"},"html":{"href":"https://github.com/autotest/tp-qemu/pull/762#discussion_r83137807"},"pull_request":{"href":"https://api.github.com/repos/autotest/tp-qemu/pulls/762"}}},"pull_request":{"url":"https://api.github.com/repos/autotest/tp-qemu/pulls/762","id":88606893,"html_url":"https://github.com/autotest/tp-qemu/pull/762","diff_url":"https://github.com/autotest/tp-qemu/pull/762.diff","patch_url":"https://github.com/autotest/tp-qemu/pull/762.patch","issue_url":"https://api.github.com/repos/autotest/tp-qemu/issues/762","number":762,"state":"open","locked":false,"title":"block_commit: Add test case 'Basic block commit test' to block commit","user":{"login":"xiywang","id":22315657,"avatar_url":"https://avatars.githubusercontent.com/u/22315657?v=3","gravatar_id":"","url":"https://api.github.com/users/xiywang","html_url":"https://github.com/xiywang","followers_url":"https://api.github.com/users/xiywang/followers","following_url":"https://api.github.com/users/xiywang/following{/other_user}","gists_url":"https://api.github.com/users/xiywang/gists{/gist_id}","starred_url":"https://api.github.com/users/xiywang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiywang/subscriptions","organizations_url":"https://api.github.com/users/xiywang/orgs","repos_url":"https://api.github.com/users/xiywang/repos","events_url":"https://api.github.com/users/xiywang/events{/privacy}","received_events_url":"https://api.github.com/users/xiywang/received_events","type":"User","site_admin":false},"body":"id: 1380234\r\nSigned-off-by: xiywang","created_at":"2016-10-10T03:30:35Z","updated_at":"2016-10-13T03:21:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5a95f280b7e0cb7ac0781ef167d32c67d34f42c8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/autotest/tp-qemu/pulls/762/commits","review_comments_url":"https://api.github.com/repos/autotest/tp-qemu/pulls/762/comments","review_comment_url":"https://api.github.com/repos/autotest/tp-qemu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/autotest/tp-qemu/issues/762/comments","statuses_url":"https://api.github.com/repos/autotest/tp-qemu/statuses/042059bd4d3596fa8d435f6b9fa254e363844925","head":{"label":"xiywang:live_commit","ref":"live_commit","sha":"042059bd4d3596fa8d435f6b9fa254e363844925","user":{"login":"xiywang","id":22315657,"avatar_url":"https://avatars.githubusercontent.com/u/22315657?v=3","gravatar_id":"","url":"https://api.github.com/users/xiywang","html_url":"https://github.com/xiywang","followers_url":"https://api.github.com/users/xiywang/followers","following_url":"https://api.github.com/users/xiywang/following{/other_user}","gists_url":"https://api.github.com/users/xiywang/gists{/gist_id}","starred_url":"https://api.github.com/users/xiywang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiywang/subscriptions","organizations_url":"https://api.github.com/users/xiywang/orgs","repos_url":"https://api.github.com/users/xiywang/repos","events_url":"https://api.github.com/users/xiywang/events{/privacy}","received_events_url":"https://api.github.com/users/xiywang/received_events","type":"User","site_admin":false},"repo":{"id":69521066,"name":"tp-qemu","full_name":"xiywang/tp-qemu","owner":{"login":"xiywang","id":22315657,"avatar_url":"https://avatars.githubusercontent.com/u/22315657?v=3","gravatar_id":"","url":"https://api.github.com/users/xiywang","html_url":"https://github.com/xiywang","followers_url":"https://api.github.com/users/xiywang/followers","following_url":"https://api.github.com/users/xiywang/following{/other_user}","gists_url":"https://api.github.com/users/xiywang/gists{/gist_id}","starred_url":"https://api.github.com/users/xiywang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiywang/subscriptions","organizations_url":"https://api.github.com/users/xiywang/orgs","repos_url":"https://api.github.com/users/xiywang/repos","events_url":"https://api.github.com/users/xiywang/events{/privacy}","received_events_url":"https://api.github.com/users/xiywang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xiywang/tp-qemu","description":"Virt Test Provider for qemu and other related virtualization backends","fork":true,"url":"https://api.github.com/repos/xiywang/tp-qemu","forks_url":"https://api.github.com/repos/xiywang/tp-qemu/forks","keys_url":"https://api.github.com/repos/xiywang/tp-qemu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xiywang/tp-qemu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xiywang/tp-qemu/teams","hooks_url":"https://api.github.com/repos/xiywang/tp-qemu/hooks","issue_events_url":"https://api.github.com/repos/xiywang/tp-qemu/issues/events{/number}","events_url":"https://api.github.com/repos/xiywang/tp-qemu/events","assignees_url":"https://api.github.com/repos/xiywang/tp-qemu/assignees{/user}","branches_url":"https://api.github.com/repos/xiywang/tp-qemu/branches{/branch}","tags_url":"https://api.github.com/repos/xiywang/tp-qemu/tags","blobs_url":"https://api.github.com/repos/xiywang/tp-qemu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xiywang/tp-qemu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xiywang/tp-qemu/git/refs{/sha}","trees_url":"https://api.github.com/repos/xiywang/tp-qemu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xiywang/tp-qemu/statuses/{sha}","languages_url":"https://api.github.com/repos/xiywang/tp-qemu/languages","stargazers_url":"https://api.github.com/repos/xiywang/tp-qemu/stargazers","contributors_url":"https://api.github.com/repos/xiywang/tp-qemu/contributors","subscribers_url":"https://api.github.com/repos/xiywang/tp-qemu/subscribers","subscription_url":"https://api.github.com/repos/xiywang/tp-qemu/subscription","commits_url":"https://api.github.com/repos/xiywang/tp-qemu/commits{/sha}","git_commits_url":"https://api.github.com/repos/xiywang/tp-qemu/git/commits{/sha}","comments_url":"https://api.github.com/repos/xiywang/tp-qemu/comments{/number}","issue_comment_url":"https://api.github.com/repos/xiywang/tp-qemu/issues/comments{/number}","contents_url":"https://api.github.com/repos/xiywang/tp-qemu/contents/{+path}","compare_url":"https://api.github.com/repos/xiywang/tp-qemu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xiywang/tp-qemu/merges","archive_url":"https://api.github.com/repos/xiywang/tp-qemu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xiywang/tp-qemu/downloads","issues_url":"https://api.github.com/repos/xiywang/tp-qemu/issues{/number}","pulls_url":"https://api.github.com/repos/xiywang/tp-qemu/pulls{/number}","milestones_url":"https://api.github.com/repos/xiywang/tp-qemu/milestones{/number}","notifications_url":"https://api.github.com/repos/xiywang/tp-qemu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xiywang/tp-qemu/labels{/name}","releases_url":"https://api.github.com/repos/xiywang/tp-qemu/releases{/id}","deployments_url":"https://api.github.com/repos/xiywang/tp-qemu/deployments","created_at":"2016-09-29T02:05:08Z","updated_at":"2016-09-29T02:05:11Z","pushed_at":"2016-10-10T03:29:27Z","git_url":"git://github.com/xiywang/tp-qemu.git","ssh_url":"git@github.com:xiywang/tp-qemu.git","clone_url":"https://github.com/xiywang/tp-qemu.git","svn_url":"https://github.com/xiywang/tp-qemu","homepage":null,"size":11521,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"autotest:master","ref":"master","sha":"8b413429b6437f4f186ded7952867e7b38b8b226","user":{"login":"autotest","id":472856,"avatar_url":"https://avatars.githubusercontent.com/u/472856?v=3","gravatar_id":"","url":"https://api.github.com/users/autotest","html_url":"https://github.com/autotest","followers_url":"https://api.github.com/users/autotest/followers","following_url":"https://api.github.com/users/autotest/following{/other_user}","gists_url":"https://api.github.com/users/autotest/gists{/gist_id}","starred_url":"https://api.github.com/users/autotest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autotest/subscriptions","organizations_url":"https://api.github.com/users/autotest/orgs","repos_url":"https://api.github.com/users/autotest/repos","events_url":"https://api.github.com/users/autotest/events{/privacy}","received_events_url":"https://api.github.com/users/autotest/received_events","type":"Organization","site_admin":false},"repo":{"id":16180304,"name":"tp-qemu","full_name":"autotest/tp-qemu","owner":{"login":"autotest","id":472856,"avatar_url":"https://avatars.githubusercontent.com/u/472856?v=3","gravatar_id":"","url":"https://api.github.com/users/autotest","html_url":"https://github.com/autotest","followers_url":"https://api.github.com/users/autotest/followers","following_url":"https://api.github.com/users/autotest/following{/other_user}","gists_url":"https://api.github.com/users/autotest/gists{/gist_id}","starred_url":"https://api.github.com/users/autotest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autotest/subscriptions","organizations_url":"https://api.github.com/users/autotest/orgs","repos_url":"https://api.github.com/users/autotest/repos","events_url":"https://api.github.com/users/autotest/events{/privacy}","received_events_url":"https://api.github.com/users/autotest/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/autotest/tp-qemu","description":"Virt Test Provider for qemu and other related virtualization backends","fork":false,"url":"https://api.github.com/repos/autotest/tp-qemu","forks_url":"https://api.github.com/repos/autotest/tp-qemu/forks","keys_url":"https://api.github.com/repos/autotest/tp-qemu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/autotest/tp-qemu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/autotest/tp-qemu/teams","hooks_url":"https://api.github.com/repos/autotest/tp-qemu/hooks","issue_events_url":"https://api.github.com/repos/autotest/tp-qemu/issues/events{/number}","events_url":"https://api.github.com/repos/autotest/tp-qemu/events","assignees_url":"https://api.github.com/repos/autotest/tp-qemu/assignees{/user}","branches_url":"https://api.github.com/repos/autotest/tp-qemu/branches{/branch}","tags_url":"https://api.github.com/repos/autotest/tp-qemu/tags","blobs_url":"https://api.github.com/repos/autotest/tp-qemu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/autotest/tp-qemu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/autotest/tp-qemu/git/refs{/sha}","trees_url":"https://api.github.com/repos/autotest/tp-qemu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/autotest/tp-qemu/statuses/{sha}","languages_url":"https://api.github.com/repos/autotest/tp-qemu/languages","stargazers_url":"https://api.github.com/repos/autotest/tp-qemu/stargazers","contributors_url":"https://api.github.com/repos/autotest/tp-qemu/contributors","subscribers_url":"https://api.github.com/repos/autotest/tp-qemu/subscribers","subscription_url":"https://api.github.com/repos/autotest/tp-qemu/subscription","commits_url":"https://api.github.com/repos/autotest/tp-qemu/commits{/sha}","git_commits_url":"https://api.github.com/repos/autotest/tp-qemu/git/commits{/sha}","comments_url":"https://api.github.com/repos/autotest/tp-qemu/comments{/number}","issue_comment_url":"https://api.github.com/repos/autotest/tp-qemu/issues/comments{/number}","contents_url":"https://api.github.com/repos/autotest/tp-qemu/contents/{+path}","compare_url":"https://api.github.com/repos/autotest/tp-qemu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/autotest/tp-qemu/merges","archive_url":"https://api.github.com/repos/autotest/tp-qemu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/autotest/tp-qemu/downloads","issues_url":"https://api.github.com/repos/autotest/tp-qemu/issues{/number}","pulls_url":"https://api.github.com/repos/autotest/tp-qemu/pulls{/number}","milestones_url":"https://api.github.com/repos/autotest/tp-qemu/milestones{/number}","notifications_url":"https://api.github.com/repos/autotest/tp-qemu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/autotest/tp-qemu/labels{/name}","releases_url":"https://api.github.com/repos/autotest/tp-qemu/releases{/id}","deployments_url":"https://api.github.com/repos/autotest/tp-qemu/deployments","created_at":"2014-01-23T17:51:34Z","updated_at":"2016-08-25T01:57:00Z","pushed_at":"2016-10-13T03:04:40Z","git_url":"git://github.com/autotest/tp-qemu.git","ssh_url":"git@github.com:autotest/tp-qemu.git","clone_url":"https://github.com/autotest/tp-qemu.git","svn_url":"https://github.com/autotest/tp-qemu","homepage":null,"size":12116,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":73,"mirror_url":null,"open_issues_count":41,"forks":73,"open_issues":41,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/autotest/tp-qemu/pulls/762"},"html":{"href":"https://github.com/autotest/tp-qemu/pull/762"},"issue":{"href":"https://api.github.com/repos/autotest/tp-qemu/issues/762"},"comments":{"href":"https://api.github.com/repos/autotest/tp-qemu/issues/762/comments"},"review_comments":{"href":"https://api.github.com/repos/autotest/tp-qemu/pulls/762/comments"},"review_comment":{"href":"https://api.github.com/repos/autotest/tp-qemu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/autotest/tp-qemu/pulls/762/commits"},"statuses":{"href":"https://api.github.com/repos/autotest/tp-qemu/statuses/042059bd4d3596fa8d435f6b9fa254e363844925"}}}}
{"actor":{"display_login":"CongLi"}}