{"action":"created","comment":{"url":"https://api.github.com/repos/ARM-software/workload-automation/pulls/comments/49738421","id":49738421,"diff_hunk":"@@ -0,0 +1,77 @@\n+#    Copyright 2015 ARM Limited\n+#\n+# Licensed under the Apache License, Version 2.0 (the 'License');\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an 'AS IS' BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+#\n+\n+import os\n+\n+from time import sleep\n+\n+from wlauto import Workload, Parameter\n+from wlauto import File\n+from wlauto.exceptions import ConfigError\n+\n+\n+class ApkLaunchWorkload(Workload):\n+    name = 'apklaunch'\n+    description = '''\n+    Installs and runs a .apk file, waits wait_time_seconds, and tests if the app\n+    has started successfully.\n+    '''\n+    supported_platforms = ['android']\n+\n+    parameters = [\n+        Parameter('apk_file', description='Name to the .apk to run'),\n+        Parameter('pkg_name', mandatory=True,","path":"wlauto/workloads/apklaunch/__init__.py","position":35,"original_position":35,"commit_id":"7f5d4fcdf51d7e7bcaef63b52b4a63b24196d9fd","original_commit_id":"7f5d4fcdf51d7e7bcaef63b52b4a63b24196d9fd","user":{"login":"bjackman","id":2939691,"avatar_url":"https://avatars.githubusercontent.com/u/2939691?v=3","gravatar_id":"","url":"https://api.github.com/users/bjackman","html_url":"https://github.com/bjackman","followers_url":"https://api.github.com/users/bjackman/followers","following_url":"https://api.github.com/users/bjackman/following{/other_user}","gists_url":"https://api.github.com/users/bjackman/gists{/gist_id}","starred_url":"https://api.github.com/users/bjackman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjackman/subscriptions","organizations_url":"https://api.github.com/users/bjackman/orgs","repos_url":"https://api.github.com/users/bjackman/repos","events_url":"https://api.github.com/users/bjackman/events{/privacy}","received_events_url":"https://api.github.com/users/bjackman/received_events","type":"User","site_admin":false},"body":"Ah, great; I didn't spot that in the API. Will remove the parameter.","created_at":"2016-01-14T15:20:43Z","updated_at":"2016-01-14T15:20:43Z","html_url":"https://github.com/ARM-software/workload-automation/pull/77#discussion_r49738421","pull_request_url":"https://api.github.com/repos/ARM-software/workload-automation/pulls/77","_links":{"self":{"href":"https://api.github.com/repos/ARM-software/workload-automation/pulls/comments/49738421"},"html":{"href":"https://github.com/ARM-software/workload-automation/pull/77#discussion_r49738421"},"pull_request":{"href":"https://api.github.com/repos/ARM-software/workload-automation/pulls/77"}}},"pull_request":{"url":"https://api.github.com/repos/ARM-software/workload-automation/pulls/77","id":56045680,"html_url":"https://github.com/ARM-software/workload-automation/pull/77","diff_url":"https://github.com/ARM-software/workload-automation/pull/77.diff","patch_url":"https://github.com/ARM-software/workload-automation/pull/77.patch","issue_url":"https://api.github.com/repos/ARM-software/workload-automation/issues/77","number":77,"state":"open","locked":false,"title":"workloads: Add apklaunch workload","user":{"login":"bjackman","id":2939691,"avatar_url":"https://avatars.githubusercontent.com/u/2939691?v=3","gravatar_id":"","url":"https://api.github.com/users/bjackman","html_url":"https://github.com/bjackman","followers_url":"https://api.github.com/users/bjackman/followers","following_url":"https://api.github.com/users/bjackman/following{/other_user}","gists_url":"https://api.github.com/users/bjackman/gists{/gist_id}","starred_url":"https://api.github.com/users/bjackman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjackman/subscriptions","organizations_url":"https://api.github.com/users/bjackman/orgs","repos_url":"https://api.github.com/users/bjackman/repos","events_url":"https://api.github.com/users/bjackman/events{/privacy}","received_events_url":"https://api.github.com/users/bjackman/received_events","type":"User","site_admin":false},"body":"This is a workload to install and run an arbitrary .apk","created_at":"2016-01-14T15:02:15Z","updated_at":"2016-01-14T15:20:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fb95aeece3ee39bce1259700fee744b03d6a3a64","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ARM-software/workload-automation/pulls/77/commits","review_comments_url":"https://api.github.com/repos/ARM-software/workload-automation/pulls/77/comments","review_comment_url":"https://api.github.com/repos/ARM-software/workload-automation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ARM-software/workload-automation/issues/77/comments","statuses_url":"https://api.github.com/repos/ARM-software/workload-automation/statuses/7f5d4fcdf51d7e7bcaef63b52b4a63b24196d9fd","head":{"label":"bjackman:apklaunch","ref":"apklaunch","sha":"7f5d4fcdf51d7e7bcaef63b52b4a63b24196d9fd","user":{"login":"bjackman","id":2939691,"avatar_url":"https://avatars.githubusercontent.com/u/2939691?v=3","gravatar_id":"","url":"https://api.github.com/users/bjackman","html_url":"https://github.com/bjackman","followers_url":"https://api.github.com/users/bjackman/followers","following_url":"https://api.github.com/users/bjackman/following{/other_user}","gists_url":"https://api.github.com/users/bjackman/gists{/gist_id}","starred_url":"https://api.github.com/users/bjackman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjackman/subscriptions","organizations_url":"https://api.github.com/users/bjackman/orgs","repos_url":"https://api.github.com/users/bjackman/repos","events_url":"https://api.github.com/users/bjackman/events{/privacy}","received_events_url":"https://api.github.com/users/bjackman/received_events","type":"User","site_admin":false},"repo":{"id":49654048,"name":"workload-automation","full_name":"bjackman/workload-automation","owner":{"login":"bjackman","id":2939691,"avatar_url":"https://avatars.githubusercontent.com/u/2939691?v=3","gravatar_id":"","url":"https://api.github.com/users/bjackman","html_url":"https://github.com/bjackman","followers_url":"https://api.github.com/users/bjackman/followers","following_url":"https://api.github.com/users/bjackman/following{/other_user}","gists_url":"https://api.github.com/users/bjackman/gists{/gist_id}","starred_url":"https://api.github.com/users/bjackman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjackman/subscriptions","organizations_url":"https://api.github.com/users/bjackman/orgs","repos_url":"https://api.github.com/users/bjackman/repos","events_url":"https://api.github.com/users/bjackman/events{/privacy}","received_events_url":"https://api.github.com/users/bjackman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bjackman/workload-automation","description":"A framework for automating workload execution and measurement collection on ARM devices.","fork":true,"url":"https://api.github.com/repos/bjackman/workload-automation","forks_url":"https://api.github.com/repos/bjackman/workload-automation/forks","keys_url":"https://api.github.com/repos/bjackman/workload-automation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bjackman/workload-automation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bjackman/workload-automation/teams","hooks_url":"https://api.github.com/repos/bjackman/workload-automation/hooks","issue_events_url":"https://api.github.com/repos/bjackman/workload-automation/issues/events{/number}","events_url":"https://api.github.com/repos/bjackman/workload-automation/events","assignees_url":"https://api.github.com/repos/bjackman/workload-automation/assignees{/user}","branches_url":"https://api.github.com/repos/bjackman/workload-automation/branches{/branch}","tags_url":"https://api.github.com/repos/bjackman/workload-automation/tags","blobs_url":"https://api.github.com/repos/bjackman/workload-automation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bjackman/workload-automation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bjackman/workload-automation/git/refs{/sha}","trees_url":"https://api.github.com/repos/bjackman/workload-automation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bjackman/workload-automation/statuses/{sha}","languages_url":"https://api.github.com/repos/bjackman/workload-automation/languages","stargazers_url":"https://api.github.com/repos/bjackman/workload-automation/stargazers","contributors_url":"https://api.github.com/repos/bjackman/workload-automation/contributors","subscribers_url":"https://api.github.com/repos/bjackman/workload-automation/subscribers","subscription_url":"https://api.github.com/repos/bjackman/workload-automation/subscription","commits_url":"https://api.github.com/repos/bjackman/workload-automation/commits{/sha}","git_commits_url":"https://api.github.com/repos/bjackman/workload-automation/git/commits{/sha}","comments_url":"https://api.github.com/repos/bjackman/workload-automation/comments{/number}","issue_comment_url":"https://api.github.com/repos/bjackman/workload-automation/issues/comments{/number}","contents_url":"https://api.github.com/repos/bjackman/workload-automation/contents/{+path}","compare_url":"https://api.github.com/repos/bjackman/workload-automation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bjackman/workload-automation/merges","archive_url":"https://api.github.com/repos/bjackman/workload-automation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bjackman/workload-automation/downloads","issues_url":"https://api.github.com/repos/bjackman/workload-automation/issues{/number}","pulls_url":"https://api.github.com/repos/bjackman/workload-automation/pulls{/number}","milestones_url":"https://api.github.com/repos/bjackman/workload-automation/milestones{/number}","notifications_url":"https://api.github.com/repos/bjackman/workload-automation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bjackman/workload-automation/labels{/name}","releases_url":"https://api.github.com/repos/bjackman/workload-automation/releases{/id}","created_at":"2016-01-14T15:00:00Z","updated_at":"2016-01-14T15:00:02Z","pushed_at":"2016-01-14T15:00:52Z","git_url":"git://github.com/bjackman/workload-automation.git","ssh_url":"git@github.com:bjackman/workload-automation.git","clone_url":"https://github.com/bjackman/workload-automation.git","svn_url":"https://github.com/bjackman/workload-automation","homepage":null,"size":26128,"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":"ARM-software:master","ref":"master","sha":"75ce620e6bcb721c002f5760521bb27daba2b639","user":{"login":"ARM-software","id":5690313,"avatar_url":"https://avatars.githubusercontent.com/u/5690313?v=3","gravatar_id":"","url":"https://api.github.com/users/ARM-software","html_url":"https://github.com/ARM-software","followers_url":"https://api.github.com/users/ARM-software/followers","following_url":"https://api.github.com/users/ARM-software/following{/other_user}","gists_url":"https://api.github.com/users/ARM-software/gists{/gist_id}","starred_url":"https://api.github.com/users/ARM-software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARM-software/subscriptions","organizations_url":"https://api.github.com/users/ARM-software/orgs","repos_url":"https://api.github.com/users/ARM-software/repos","events_url":"https://api.github.com/users/ARM-software/events{/privacy}","received_events_url":"https://api.github.com/users/ARM-software/received_events","type":"Organization","site_admin":false},"repo":{"id":31957801,"name":"workload-automation","full_name":"ARM-software/workload-automation","owner":{"login":"ARM-software","id":5690313,"avatar_url":"https://avatars.githubusercontent.com/u/5690313?v=3","gravatar_id":"","url":"https://api.github.com/users/ARM-software","html_url":"https://github.com/ARM-software","followers_url":"https://api.github.com/users/ARM-software/followers","following_url":"https://api.github.com/users/ARM-software/following{/other_user}","gists_url":"https://api.github.com/users/ARM-software/gists{/gist_id}","starred_url":"https://api.github.com/users/ARM-software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARM-software/subscriptions","organizations_url":"https://api.github.com/users/ARM-software/orgs","repos_url":"https://api.github.com/users/ARM-software/repos","events_url":"https://api.github.com/users/ARM-software/events{/privacy}","received_events_url":"https://api.github.com/users/ARM-software/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ARM-software/workload-automation","description":"A framework for automating workload execution and measurement collection on ARM devices.","fork":false,"url":"https://api.github.com/repos/ARM-software/workload-automation","forks_url":"https://api.github.com/repos/ARM-software/workload-automation/forks","keys_url":"https://api.github.com/repos/ARM-software/workload-automation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ARM-software/workload-automation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ARM-software/workload-automation/teams","hooks_url":"https://api.github.com/repos/ARM-software/workload-automation/hooks","issue_events_url":"https://api.github.com/repos/ARM-software/workload-automation/issues/events{/number}","events_url":"https://api.github.com/repos/ARM-software/workload-automation/events","assignees_url":"https://api.github.com/repos/ARM-software/workload-automation/assignees{/user}","branches_url":"https://api.github.com/repos/ARM-software/workload-automation/branches{/branch}","tags_url":"https://api.github.com/repos/ARM-software/workload-automation/tags","blobs_url":"https://api.github.com/repos/ARM-software/workload-automation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ARM-software/workload-automation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ARM-software/workload-automation/git/refs{/sha}","trees_url":"https://api.github.com/repos/ARM-software/workload-automation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ARM-software/workload-automation/statuses/{sha}","languages_url":"https://api.github.com/repos/ARM-software/workload-automation/languages","stargazers_url":"https://api.github.com/repos/ARM-software/workload-automation/stargazers","contributors_url":"https://api.github.com/repos/ARM-software/workload-automation/contributors","subscribers_url":"https://api.github.com/repos/ARM-software/workload-automation/subscribers","subscription_url":"https://api.github.com/repos/ARM-software/workload-automation/subscription","commits_url":"https://api.github.com/repos/ARM-software/workload-automation/commits{/sha}","git_commits_url":"https://api.github.com/repos/ARM-software/workload-automation/git/commits{/sha}","comments_url":"https://api.github.com/repos/ARM-software/workload-automation/comments{/number}","issue_comment_url":"https://api.github.com/repos/ARM-software/workload-automation/issues/comments{/number}","contents_url":"https://api.github.com/repos/ARM-software/workload-automation/contents/{+path}","compare_url":"https://api.github.com/repos/ARM-software/workload-automation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ARM-software/workload-automation/merges","archive_url":"https://api.github.com/repos/ARM-software/workload-automation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ARM-software/workload-automation/downloads","issues_url":"https://api.github.com/repos/ARM-software/workload-automation/issues{/number}","pulls_url":"https://api.github.com/repos/ARM-software/workload-automation/pulls{/number}","milestones_url":"https://api.github.com/repos/ARM-software/workload-automation/milestones{/number}","notifications_url":"https://api.github.com/repos/ARM-software/workload-automation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ARM-software/workload-automation/labels{/name}","releases_url":"https://api.github.com/repos/ARM-software/workload-automation/releases{/id}","created_at":"2015-03-10T13:05:03Z","updated_at":"2016-01-12T11:01:28Z","pushed_at":"2016-01-14T15:02:15Z","git_url":"git://github.com/ARM-software/workload-automation.git","ssh_url":"git@github.com:ARM-software/workload-automation.git","clone_url":"https://github.com/ARM-software/workload-automation.git","svn_url":"https://github.com/ARM-software/workload-automation","homepage":null,"size":26205,"stargazers_count":28,"watchers_count":28,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":6,"forks":21,"open_issues":6,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ARM-software/workload-automation/pulls/77"},"html":{"href":"https://github.com/ARM-software/workload-automation/pull/77"},"issue":{"href":"https://api.github.com/repos/ARM-software/workload-automation/issues/77"},"comments":{"href":"https://api.github.com/repos/ARM-software/workload-automation/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/ARM-software/workload-automation/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/ARM-software/workload-automation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ARM-software/workload-automation/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/ARM-software/workload-automation/statuses/7f5d4fcdf51d7e7bcaef63b52b4a63b24196d9fd"}}}}