{"action":"created","comment":{"url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/pulls/comments/61841383","id":61841383,"diff_hunk":"@@ -0,0 +1,77 @@\n+import os\n+import json\n+import re\n+\n+from avocado import Test\n+from avocado import main\n+from avocado.utils import archive\n+from avocado.utils import process\n+from avocado.utils import build\n+from avocado.utils.software_manager import SoftwareManager\n+\n+\n+class Ebizzy(Test):\n+\n+    '''\n+    ebizzy is designed to generate a workload resembling common web application\n+    server workloads. It is highly threaded, has a large in-memory working set,\n+    and allocates and deallocates memory frequently.\n+    '''\n+\n+    def setUp(self):\n+        '''\n+        Build ebizzy\n+        Source:\n+        http://liquidtelecom.dl.sourceforge.net/project/ebizzy/ebizzy/0.3\n+        /ebizzy-0.3.tar.gz\n+        '''\n+        sm = SoftwareManager()\n+        if not sm.check_installed(\"gcc\") and not sm.install(\"gcc\"):\n+            self.error(\"Gcc is needed for the test to be run\")\n+\n+        tarball = self.fetch_asset('http://liquidtelecom.dl.sourceforge.net'\n+                                   '/project/ebizzy/ebizzy/0.3'\n+                                   '/ebizzy-0.3.tar.gz')\n+        data_dir = os.path.abspath(self.datadir)\n+        archive.extract(tarball, self.srcdir)\n+        cb_version = os.path.basename(tarball.split('.tar.')[0])\n+        self.srcdir = os.path.join(self.srcdir, cb_version)\n+\n+        patch = self.params.get(\n+            'patch', default='Fix-build-issues-with-ebizzy.patch')\n+        os.chdir(self.srcdir)\n+        p1 = 'patch -p0 < %s/%s' % (data_dir, patch)","path":"cpu/ebizzy.py","position":42,"original_position":43,"commit_id":"97ceee62931161d699ecf02ff39184f2b47480bf","original_commit_id":"fefc1e4e76fb1c342a52a11c18bf3868e309b3c8","user":{"login":"harish-24","id":17269437,"avatar_url":"https://avatars.githubusercontent.com/u/17269437?v=3","gravatar_id":"","url":"https://api.github.com/users/harish-24","html_url":"https://github.com/harish-24","followers_url":"https://api.github.com/users/harish-24/followers","following_url":"https://api.github.com/users/harish-24/following{/other_user}","gists_url":"https://api.github.com/users/harish-24/gists{/gist_id}","starred_url":"https://api.github.com/users/harish-24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harish-24/subscriptions","organizations_url":"https://api.github.com/users/harish-24/orgs","repos_url":"https://api.github.com/users/harish-24/repos","events_url":"https://api.github.com/users/harish-24/events{/privacy}","received_events_url":"https://api.github.com/users/harish-24/received_events","type":"User","site_admin":false},"body":"@apahim Some issue with patch file with tabs and spaces. Resolved and sent again. Thank You.","created_at":"2016-05-03T06:12:09Z","updated_at":"2016-05-03T06:12:09Z","html_url":"https://github.com/avocado-framework/avocado-misc-tests/pull/17#discussion_r61841383","pull_request_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/pulls/comments/61841383"},"html":{"href":"https://github.com/avocado-framework/avocado-misc-tests/pull/17#discussion_r61841383"},"pull_request":{"href":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/pulls/17","id":68568190,"html_url":"https://github.com/avocado-framework/avocado-misc-tests/pull/17","diff_url":"https://github.com/avocado-framework/avocado-misc-tests/pull/17.diff","patch_url":"https://github.com/avocado-framework/avocado-misc-tests/pull/17.patch","issue_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/issues/17","number":17,"state":"open","locked":false,"title":"Ebizzy test for avocado","user":{"login":"harish-24","id":17269437,"avatar_url":"https://avatars.githubusercontent.com/u/17269437?v=3","gravatar_id":"","url":"https://api.github.com/users/harish-24","html_url":"https://github.com/harish-24","followers_url":"https://api.github.com/users/harish-24/followers","following_url":"https://api.github.com/users/harish-24/following{/other_user}","gists_url":"https://api.github.com/users/harish-24/gists{/gist_id}","starred_url":"https://api.github.com/users/harish-24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harish-24/subscriptions","organizations_url":"https://api.github.com/users/harish-24/orgs","repos_url":"https://api.github.com/users/harish-24/repos","events_url":"https://api.github.com/users/harish-24/events{/privacy}","received_events_url":"https://api.github.com/users/harish-24/received_events","type":"User","site_admin":false},"body":"Ported Ebizzy Test from autotest-client-tests to avocado-misc-tests","created_at":"2016-05-02T14:35:09Z","updated_at":"2016-05-03T06:12:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"588b9d2456fee0bdfbcc574f41da9dbdbf135b64","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/pulls/17/commits","review_comments_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/pulls/17/comments","review_comment_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/issues/17/comments","statuses_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/statuses/97ceee62931161d699ecf02ff39184f2b47480bf","head":{"label":"harish-24:ebizzy_test","ref":"ebizzy_test","sha":"97ceee62931161d699ecf02ff39184f2b47480bf","user":{"login":"harish-24","id":17269437,"avatar_url":"https://avatars.githubusercontent.com/u/17269437?v=3","gravatar_id":"","url":"https://api.github.com/users/harish-24","html_url":"https://github.com/harish-24","followers_url":"https://api.github.com/users/harish-24/followers","following_url":"https://api.github.com/users/harish-24/following{/other_user}","gists_url":"https://api.github.com/users/harish-24/gists{/gist_id}","starred_url":"https://api.github.com/users/harish-24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harish-24/subscriptions","organizations_url":"https://api.github.com/users/harish-24/orgs","repos_url":"https://api.github.com/users/harish-24/repos","events_url":"https://api.github.com/users/harish-24/events{/privacy}","received_events_url":"https://api.github.com/users/harish-24/received_events","type":"User","site_admin":false},"repo":{"id":56316783,"name":"avocado-misc-tests","full_name":"harish-24/avocado-misc-tests","owner":{"login":"harish-24","id":17269437,"avatar_url":"https://avatars.githubusercontent.com/u/17269437?v=3","gravatar_id":"","url":"https://api.github.com/users/harish-24","html_url":"https://github.com/harish-24","followers_url":"https://api.github.com/users/harish-24/followers","following_url":"https://api.github.com/users/harish-24/following{/other_user}","gists_url":"https://api.github.com/users/harish-24/gists{/gist_id}","starred_url":"https://api.github.com/users/harish-24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harish-24/subscriptions","organizations_url":"https://api.github.com/users/harish-24/orgs","repos_url":"https://api.github.com/users/harish-24/repos","events_url":"https://api.github.com/users/harish-24/events{/privacy}","received_events_url":"https://api.github.com/users/harish-24/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/harish-24/avocado-misc-tests","description":"Avocado tests repository","fork":true,"url":"https://api.github.com/repos/harish-24/avocado-misc-tests","forks_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/forks","keys_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/teams","hooks_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/hooks","issue_events_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/issues/events{/number}","events_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/events","assignees_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/assignees{/user}","branches_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/branches{/branch}","tags_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/tags","blobs_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/languages","stargazers_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/stargazers","contributors_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/contributors","subscribers_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/subscribers","subscription_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/subscription","commits_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/contents/{+path}","compare_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/merges","archive_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/downloads","issues_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/issues{/number}","pulls_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/labels{/name}","releases_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/releases{/id}","deployments_url":"https://api.github.com/repos/harish-24/avocado-misc-tests/deployments","created_at":"2016-04-15T11:58:17Z","updated_at":"2016-04-15T11:58:18Z","pushed_at":"2016-05-03T06:09:54Z","git_url":"git://github.com/harish-24/avocado-misc-tests.git","ssh_url":"git@github.com:harish-24/avocado-misc-tests.git","clone_url":"https://github.com/harish-24/avocado-misc-tests.git","svn_url":"https://github.com/harish-24/avocado-misc-tests","homepage":null,"size":1327,"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":"648b2f5297e148703ec6e23f39511ea7e08fbd65","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":49900980,"name":"avocado-misc-tests","full_name":"avocado-framework/avocado-misc-tests","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-misc-tests","description":"Avocado tests repository","fork":false,"url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests","forks_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/forks","keys_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/teams","hooks_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/hooks","issue_events_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/issues/events{/number}","events_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/events","assignees_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/assignees{/user}","branches_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/branches{/branch}","tags_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/tags","blobs_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/languages","stargazers_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/stargazers","contributors_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/contributors","subscribers_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/subscribers","subscription_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/subscription","commits_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/contents/{+path}","compare_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/merges","archive_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/downloads","issues_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/issues{/number}","pulls_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/labels{/name}","releases_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/releases{/id}","deployments_url":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/deployments","created_at":"2016-01-18T19:48:34Z","updated_at":"2016-04-25T14:38:29Z","pushed_at":"2016-05-03T06:09:55Z","git_url":"git://github.com/avocado-framework/avocado-misc-tests.git","ssh_url":"git@github.com:avocado-framework/avocado-misc-tests.git","clone_url":"https://github.com/avocado-framework/avocado-misc-tests.git","svn_url":"https://github.com/avocado-framework/avocado-misc-tests","homepage":null,"size":1328,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":4,"forks":8,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/pulls/17"},"html":{"href":"https://github.com/avocado-framework/avocado-misc-tests/pull/17"},"issue":{"href":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/issues/17"},"comments":{"href":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/avocado-framework/avocado-misc-tests/statuses/97ceee62931161d699ecf02ff39184f2b47480bf"}}}}