{"action":"created","comment":{"url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/comments/86202094","pull_request_review_id":6871874,"id":86202094,"diff_hunk":"@@ -0,0 +1,142 @@\n+#!/usr/bin/env python\n+\n+# This program is free software; you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation; either version 2 of the License, or\n+# (at your option) any later version.\n+#\n+# This program is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n+#\n+# See LICENSE for more details.\n+#\n+# Copyright: 2016 IBM\n+# Author: Sudeesh John <sudeesh@linux.vnet.ibm.com>\n+#\n+# Based on code by \"mbligh@google.com (Martin Bligh)\"\n+# https://github.com/autotest/autotest-client-tests/commits/master/kernbench\n+\n+import os\n+import multiprocessing\n+import logging\n+import re\n+import platform\n+\n+from avocado import Test\n+from avocado import main\n+from avocado.utils import build\n+from avocado.utils import process\n+from avocado.utils import kernel\n+from avocado.utils.software_manager import SoftwareManager\n+\n+log = logging.getLogger('avocado.test')\n+\n+\n+class KernbenchTest(Test):\n+    \"\"\"\n+    Kernbench comples the kernel source fetched from the kernel.org\n+    and compile it as per the configuration file. Performance figures will be\n+    shown in the log file.\n+    \"\"\"\n+\n+    def time_build(self, kern,\n+                   threads=None, timefile=None, make_opts=None):\n+        \"\"\"time the bulding of the kernel\"\"\"\n+        os.chdir(kern.linux_dir)","path":"perf/kernbench.py","position":46,"original_position":46,"commit_id":"691305a0cb988ae8b7ca5d071ef10e7f0a0cca6c","original_commit_id":"691305a0cb988ae8b7ca5d071ef10e7f0a0cca6c","user":{"login":"sudeeshjohn","id":7588962,"avatar_url":"https://avatars.githubusercontent.com/u/7588962?v=3","gravatar_id":"","url":"https://api.github.com/users/sudeeshjohn","html_url":"https://github.com/sudeeshjohn","followers_url":"https://api.github.com/users/sudeeshjohn/followers","following_url":"https://api.github.com/users/sudeeshjohn/following{/other_user}","gists_url":"https://api.github.com/users/sudeeshjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/sudeeshjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudeeshjohn/subscriptions","organizations_url":"https://api.github.com/users/sudeeshjohn/orgs","repos_url":"https://api.github.com/users/sudeeshjohn/repos","events_url":"https://api.github.com/users/sudeeshjohn/events{/privacy}","received_events_url":"https://api.github.com/users/sudeeshjohn/received_events","type":"User","site_admin":false},"body":"@PraveenPenguin , I'll check make the required change","created_at":"2016-11-02T17:46:47Z","updated_at":"2016-11-02T17:46:48Z","html_url":"https://github.com/avocado-framework-tests/avocado-misc-tests/pull/35#discussion_r86202094","pull_request_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/comments/86202094"},"html":{"href":"https://github.com/avocado-framework-tests/avocado-misc-tests/pull/35#discussion_r86202094"},"pull_request":{"href":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/35","id":85026727,"html_url":"https://github.com/avocado-framework-tests/avocado-misc-tests/pull/35","diff_url":"https://github.com/avocado-framework-tests/avocado-misc-tests/pull/35.diff","patch_url":"https://github.com/avocado-framework-tests/avocado-misc-tests/pull/35.patch","issue_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/issues/35","number":35,"state":"open","locked":false,"title":"Adding kernbench test to avocado","user":{"login":"sudeeshjohn","id":7588962,"avatar_url":"https://avatars.githubusercontent.com/u/7588962?v=3","gravatar_id":"","url":"https://api.github.com/users/sudeeshjohn","html_url":"https://github.com/sudeeshjohn","followers_url":"https://api.github.com/users/sudeeshjohn/followers","following_url":"https://api.github.com/users/sudeeshjohn/following{/other_user}","gists_url":"https://api.github.com/users/sudeeshjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/sudeeshjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudeeshjohn/subscriptions","organizations_url":"https://api.github.com/users/sudeeshjohn/orgs","repos_url":"https://api.github.com/users/sudeeshjohn/repos","events_url":"https://api.github.com/users/sudeeshjohn/events{/privacy}","received_events_url":"https://api.github.com/users/sudeeshjohn/received_events","type":"User","site_admin":false},"body":"Kernbench is a standard CPU benchmark. Runs a kernel\ncompile and measures the performance by using time\ncommand. By default it runs only once with 2 \\* number\nof CPUs.\n\nSigned-off-by: Sudeesh John sudeesh@linux.vnet.ibm.com\n","created_at":"2016-09-13T10:59:44Z","updated_at":"2016-11-02T17:46:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1a38049c141d20ce21a248725007159a18ca232","assignee":{"login":"PraveenPenguin","id":11898572,"avatar_url":"https://avatars.githubusercontent.com/u/11898572?v=3","gravatar_id":"","url":"https://api.github.com/users/PraveenPenguin","html_url":"https://github.com/PraveenPenguin","followers_url":"https://api.github.com/users/PraveenPenguin/followers","following_url":"https://api.github.com/users/PraveenPenguin/following{/other_user}","gists_url":"https://api.github.com/users/PraveenPenguin/gists{/gist_id}","starred_url":"https://api.github.com/users/PraveenPenguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PraveenPenguin/subscriptions","organizations_url":"https://api.github.com/users/PraveenPenguin/orgs","repos_url":"https://api.github.com/users/PraveenPenguin/repos","events_url":"https://api.github.com/users/PraveenPenguin/events{/privacy}","received_events_url":"https://api.github.com/users/PraveenPenguin/received_events","type":"User","site_admin":false},"assignees":[{"login":"PraveenPenguin","id":11898572,"avatar_url":"https://avatars.githubusercontent.com/u/11898572?v=3","gravatar_id":"","url":"https://api.github.com/users/PraveenPenguin","html_url":"https://github.com/PraveenPenguin","followers_url":"https://api.github.com/users/PraveenPenguin/followers","following_url":"https://api.github.com/users/PraveenPenguin/following{/other_user}","gists_url":"https://api.github.com/users/PraveenPenguin/gists{/gist_id}","starred_url":"https://api.github.com/users/PraveenPenguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PraveenPenguin/subscriptions","organizations_url":"https://api.github.com/users/PraveenPenguin/orgs","repos_url":"https://api.github.com/users/PraveenPenguin/repos","events_url":"https://api.github.com/users/PraveenPenguin/events{/privacy}","received_events_url":"https://api.github.com/users/PraveenPenguin/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/35/commits","review_comments_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/35/comments","review_comment_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/issues/35/comments","statuses_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/statuses/691305a0cb988ae8b7ca5d071ef10e7f0a0cca6c","head":{"label":"sudeeshjohn:kernbench-v3","ref":"kernbench-v3","sha":"691305a0cb988ae8b7ca5d071ef10e7f0a0cca6c","user":{"login":"sudeeshjohn","id":7588962,"avatar_url":"https://avatars.githubusercontent.com/u/7588962?v=3","gravatar_id":"","url":"https://api.github.com/users/sudeeshjohn","html_url":"https://github.com/sudeeshjohn","followers_url":"https://api.github.com/users/sudeeshjohn/followers","following_url":"https://api.github.com/users/sudeeshjohn/following{/other_user}","gists_url":"https://api.github.com/users/sudeeshjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/sudeeshjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudeeshjohn/subscriptions","organizations_url":"https://api.github.com/users/sudeeshjohn/orgs","repos_url":"https://api.github.com/users/sudeeshjohn/repos","events_url":"https://api.github.com/users/sudeeshjohn/events{/privacy}","received_events_url":"https://api.github.com/users/sudeeshjohn/received_events","type":"User","site_admin":false},"repo":{"id":67509350,"name":"avocado-misc-tests","full_name":"sudeeshjohn/avocado-misc-tests","owner":{"login":"sudeeshjohn","id":7588962,"avatar_url":"https://avatars.githubusercontent.com/u/7588962?v=3","gravatar_id":"","url":"https://api.github.com/users/sudeeshjohn","html_url":"https://github.com/sudeeshjohn","followers_url":"https://api.github.com/users/sudeeshjohn/followers","following_url":"https://api.github.com/users/sudeeshjohn/following{/other_user}","gists_url":"https://api.github.com/users/sudeeshjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/sudeeshjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudeeshjohn/subscriptions","organizations_url":"https://api.github.com/users/sudeeshjohn/orgs","repos_url":"https://api.github.com/users/sudeeshjohn/repos","events_url":"https://api.github.com/users/sudeeshjohn/events{/privacy}","received_events_url":"https://api.github.com/users/sudeeshjohn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sudeeshjohn/avocado-misc-tests","description":"Community maintained Avocado tests repository","fork":true,"url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests","forks_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/forks","keys_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/teams","hooks_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/hooks","issue_events_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/issues/events{/number}","events_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/events","assignees_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/assignees{/user}","branches_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/branches{/branch}","tags_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/tags","blobs_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/languages","stargazers_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/stargazers","contributors_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/contributors","subscribers_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/subscribers","subscription_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/subscription","commits_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/contents/{+path}","compare_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/merges","archive_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/downloads","issues_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/issues{/number}","pulls_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/labels{/name}","releases_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/releases{/id}","deployments_url":"https://api.github.com/repos/sudeeshjohn/avocado-misc-tests/deployments","created_at":"2016-09-06T13:11:04Z","updated_at":"2016-09-06T13:11:05Z","pushed_at":"2016-11-02T15:55:15Z","git_url":"git://github.com/sudeeshjohn/avocado-misc-tests.git","ssh_url":"git@github.com:sudeeshjohn/avocado-misc-tests.git","clone_url":"https://github.com/sudeeshjohn/avocado-misc-tests.git","svn_url":"https://github.com/sudeeshjohn/avocado-misc-tests","homepage":"","size":1594,"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-tests:master","ref":"master","sha":"a5b23ea17070684a59584a7664c81f6c7392a80f","user":{"login":"avocado-framework-tests","id":21237888,"avatar_url":"https://avatars.githubusercontent.com/u/21237888?v=3","gravatar_id":"","url":"https://api.github.com/users/avocado-framework-tests","html_url":"https://github.com/avocado-framework-tests","followers_url":"https://api.github.com/users/avocado-framework-tests/followers","following_url":"https://api.github.com/users/avocado-framework-tests/following{/other_user}","gists_url":"https://api.github.com/users/avocado-framework-tests/gists{/gist_id}","starred_url":"https://api.github.com/users/avocado-framework-tests/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avocado-framework-tests/subscriptions","organizations_url":"https://api.github.com/users/avocado-framework-tests/orgs","repos_url":"https://api.github.com/users/avocado-framework-tests/repos","events_url":"https://api.github.com/users/avocado-framework-tests/events{/privacy}","received_events_url":"https://api.github.com/users/avocado-framework-tests/received_events","type":"Organization","site_admin":false},"repo":{"id":66541747,"name":"avocado-misc-tests","full_name":"avocado-framework-tests/avocado-misc-tests","owner":{"login":"avocado-framework-tests","id":21237888,"avatar_url":"https://avatars.githubusercontent.com/u/21237888?v=3","gravatar_id":"","url":"https://api.github.com/users/avocado-framework-tests","html_url":"https://github.com/avocado-framework-tests","followers_url":"https://api.github.com/users/avocado-framework-tests/followers","following_url":"https://api.github.com/users/avocado-framework-tests/following{/other_user}","gists_url":"https://api.github.com/users/avocado-framework-tests/gists{/gist_id}","starred_url":"https://api.github.com/users/avocado-framework-tests/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avocado-framework-tests/subscriptions","organizations_url":"https://api.github.com/users/avocado-framework-tests/orgs","repos_url":"https://api.github.com/users/avocado-framework-tests/repos","events_url":"https://api.github.com/users/avocado-framework-tests/events{/privacy}","received_events_url":"https://api.github.com/users/avocado-framework-tests/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/avocado-framework-tests/avocado-misc-tests","description":"Community maintained Avocado tests repository","fork":false,"url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests","forks_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/forks","keys_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/teams","hooks_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/hooks","issue_events_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/issues/events{/number}","events_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/events","assignees_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/assignees{/user}","branches_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/branches{/branch}","tags_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/tags","blobs_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/languages","stargazers_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/stargazers","contributors_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/contributors","subscribers_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/subscribers","subscription_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/subscription","commits_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/contents/{+path}","compare_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/merges","archive_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/downloads","issues_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/issues{/number}","pulls_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/labels{/name}","releases_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/releases{/id}","deployments_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/deployments","created_at":"2016-08-25T08:50:54Z","updated_at":"2016-10-24T13:29:55Z","pushed_at":"2016-11-01T07:13:42Z","git_url":"git://github.com/avocado-framework-tests/avocado-misc-tests.git","ssh_url":"git@github.com:avocado-framework-tests/avocado-misc-tests.git","clone_url":"https://github.com/avocado-framework-tests/avocado-misc-tests.git","svn_url":"https://github.com/avocado-framework-tests/avocado-misc-tests","homepage":"","size":1742,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":9,"forks":20,"open_issues":9,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/35"},"html":{"href":"https://github.com/avocado-framework-tests/avocado-misc-tests/pull/35"},"issue":{"href":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/issues/35"},"comments":{"href":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/statuses/691305a0cb988ae8b7ca5d071ef10e7f0a0cca6c"}}}}
{"actor":{"display_login":"sudeeshjohn"}}