{"action":"created","comment":{"url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/comments/131832727","pull_request_review_id":54847354,"id":131832727,"diff_hunk":"@@ -0,0 +1,93 @@\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: 2017 IBM\n+# Author: Pavithra <pavrampu@linux.vnet.ibm.com>\n+\n+import time\n+import os\n+from avocado import Test\n+from avocado import main\n+from virttest import remote\n+from avocado.utils import process\n+from avocado.utils.software_manager import SoftwareManager\n+\n+\n+class KDUMP(Test):\n+\n+    def run_cmd_out(self, cmd):\n+        return process.system_output(cmd, shell=True, ignore_status=True, sudo=True).strip()\n+\n+    def setUp(self):\n+        sm = SoftwareManager()\n+        if not sm.check_installed(\"openssh*\") and not sm.install(\"openssh*\"):\n+            self.error(\"Fail to install openssh required for this test.\")\n+        self.ip = self.params.get('ip', default='')","path":"generic/kdump.py","position":35,"original_position":35,"commit_id":"326c0617997f056c0f9c7019f3d1c0c2859e4177","original_commit_id":"326c0617997f056c0f9c7019f3d1c0c2859e4177","user":{"login":"PraveenPenguin","id":11898572,"avatar_url":"https://avatars2.githubusercontent.com/u/11898572?v=4","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},"body":"can we check if IP is not valid skip the test ?","created_at":"2017-08-08T06:48:29Z","updated_at":"2017-08-08T06:53:46Z","html_url":"https://github.com/avocado-framework-tests/avocado-misc-tests/pull/593#discussion_r131832727","pull_request_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/593","_links":{"self":{"href":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/comments/131832727"},"html":{"href":"https://github.com/avocado-framework-tests/avocado-misc-tests/pull/593#discussion_r131832727"},"pull_request":{"href":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/593"}}},"pull_request":{"url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/593","id":133995472,"html_url":"https://github.com/avocado-framework-tests/avocado-misc-tests/pull/593","diff_url":"https://github.com/avocado-framework-tests/avocado-misc-tests/pull/593.diff","patch_url":"https://github.com/avocado-framework-tests/avocado-misc-tests/pull/593.patch","issue_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/issues/593","number":593,"state":"open","locked":false,"title":"To verify kdump on RHEL and Ubuntu -v2","user":{"login":"Pavithra1602","id":19529559,"avatar_url":"https://avatars2.githubusercontent.com/u/19529559?v=4","gravatar_id":"","url":"https://api.github.com/users/Pavithra1602","html_url":"https://github.com/Pavithra1602","followers_url":"https://api.github.com/users/Pavithra1602/followers","following_url":"https://api.github.com/users/Pavithra1602/following{/other_user}","gists_url":"https://api.github.com/users/Pavithra1602/gists{/gist_id}","starred_url":"https://api.github.com/users/Pavithra1602/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pavithra1602/subscriptions","organizations_url":"https://api.github.com/users/Pavithra1602/orgs","repos_url":"https://api.github.com/users/Pavithra1602/repos","events_url":"https://api.github.com/users/Pavithra1602/events{/privacy}","received_events_url":"https://api.github.com/users/Pavithra1602/received_events","type":"User","site_admin":false},"body":"This test triggers kdump on the machine configured in config.yaml and checks if vmcore is generated.\r\n\r\nSigned-off-by: Pavithra <pavrampu@linux.vnet.ibm.com>","created_at":"2017-08-03T17:06:45Z","updated_at":"2017-08-08T06:53:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"37af21378e0c0f8d8f98d327a36e6a5a1cbc3369","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/593/commits","review_comments_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/593/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/593/comments","statuses_url":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/statuses/326c0617997f056c0f9c7019f3d1c0c2859e4177","head":{"label":"Pavithra1602:kdump_2","ref":"kdump_2","sha":"326c0617997f056c0f9c7019f3d1c0c2859e4177","user":{"login":"Pavithra1602","id":19529559,"avatar_url":"https://avatars2.githubusercontent.com/u/19529559?v=4","gravatar_id":"","url":"https://api.github.com/users/Pavithra1602","html_url":"https://github.com/Pavithra1602","followers_url":"https://api.github.com/users/Pavithra1602/followers","following_url":"https://api.github.com/users/Pavithra1602/following{/other_user}","gists_url":"https://api.github.com/users/Pavithra1602/gists{/gist_id}","starred_url":"https://api.github.com/users/Pavithra1602/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pavithra1602/subscriptions","organizations_url":"https://api.github.com/users/Pavithra1602/orgs","repos_url":"https://api.github.com/users/Pavithra1602/repos","events_url":"https://api.github.com/users/Pavithra1602/events{/privacy}","received_events_url":"https://api.github.com/users/Pavithra1602/received_events","type":"User","site_admin":false},"repo":{"id":68806259,"name":"avocado-misc-tests-1","full_name":"Pavithra1602/avocado-misc-tests-1","owner":{"login":"Pavithra1602","id":19529559,"avatar_url":"https://avatars2.githubusercontent.com/u/19529559?v=4","gravatar_id":"","url":"https://api.github.com/users/Pavithra1602","html_url":"https://github.com/Pavithra1602","followers_url":"https://api.github.com/users/Pavithra1602/followers","following_url":"https://api.github.com/users/Pavithra1602/following{/other_user}","gists_url":"https://api.github.com/users/Pavithra1602/gists{/gist_id}","starred_url":"https://api.github.com/users/Pavithra1602/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pavithra1602/subscriptions","organizations_url":"https://api.github.com/users/Pavithra1602/orgs","repos_url":"https://api.github.com/users/Pavithra1602/repos","events_url":"https://api.github.com/users/Pavithra1602/events{/privacy}","received_events_url":"https://api.github.com/users/Pavithra1602/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Pavithra1602/avocado-misc-tests-1","description":"Community maintained Avocado tests repository","fork":true,"url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1","forks_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/forks","keys_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/teams","hooks_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/hooks","issue_events_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/issues/events{/number}","events_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/events","assignees_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/assignees{/user}","branches_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/branches{/branch}","tags_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/tags","blobs_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/statuses/{sha}","languages_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/languages","stargazers_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/stargazers","contributors_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/contributors","subscribers_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/subscribers","subscription_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/subscription","commits_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/contents/{+path}","compare_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/merges","archive_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/downloads","issues_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/issues{/number}","pulls_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/pulls{/number}","milestones_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/milestones{/number}","notifications_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/labels{/name}","releases_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/releases{/id}","deployments_url":"https://api.github.com/repos/Pavithra1602/avocado-misc-tests-1/deployments","created_at":"2016-09-21T10:28:18Z","updated_at":"2016-09-21T10:28:19Z","pushed_at":"2017-08-03T17:06:22Z","git_url":"git://github.com/Pavithra1602/avocado-misc-tests-1.git","ssh_url":"git@github.com:Pavithra1602/avocado-misc-tests-1.git","clone_url":"https://github.com/Pavithra1602/avocado-misc-tests-1.git","svn_url":"https://github.com/Pavithra1602/avocado-misc-tests-1","homepage":"","size":2185,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"avocado-framework-tests:master","ref":"master","sha":"55b2f43e4c7c38b10ce1e1a9f66a0465f8af84e5","user":{"login":"avocado-framework-tests","id":21237888,"avatar_url":"https://avatars1.githubusercontent.com/u/21237888?v=4","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://avatars1.githubusercontent.com/u/21237888?v=4","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":"2017-08-03T06:17:13Z","pushed_at":"2017-08-07T13:55:14Z","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":2160,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":11,"forks":30,"open_issues":11,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/593"},"html":{"href":"https://github.com/avocado-framework-tests/avocado-misc-tests/pull/593"},"issue":{"href":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/issues/593"},"comments":{"href":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/issues/593/comments"},"review_comments":{"href":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/pulls/593/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/593/commits"},"statuses":{"href":"https://api.github.com/repos/avocado-framework-tests/avocado-misc-tests/statuses/326c0617997f056c0f9c7019f3d1c0c2859e4177"}}}}
{"actor":{"display_login":"PraveenPenguin"}}