{"action":"created","comment":{"url":"https://api.github.com/repos/arteria-project/arteria-packs/pulls/comments/75910061","id":75910061,"diff_hunk":"@@ -0,0 +1,86 @@\n+#!/usr/bin/env bash\n+# Licensed to the StackStorm, Inc ('StackStorm') under one or more\n+# contributor license agreements.  See the NOTICE file distributed with\n+# this work for additional information regarding copyright ownership.\n+# The ASF licenses this file to You under the Apache License, Version 2.0\n+# (the \"License\"); you may not use this file except in compliance with\n+# the License.  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+# DOCS\n+# This script is adopted from st2-run-pack-tests, but has been changed\n+# to allow for faster iteration, provided that the user has already prepared\n+# an environment in which the tests can run.\n+\n+##################\n+# Common functions\n+##################\n+\n+function join { local IFS=\"$1\"; shift; echo \"$*\"; }\n+\n+####################\n+# Script beings here\n+####################\n+\n+PACK_PATH=/opt/stackstorm/packs/arteria-packs\n+ST2_REPO_PATH=\"./st2/\"\n+\n+source venv/bin/activate\n+\n+SCRIPT_PATH=$(readlink -f $0)\n+DIRECTORY_PATH=$(dirname ${SCRIPT_PATH})\n+\n+PACK_NAME=$(basename ${PACK_PATH})\n+PACK_TESTS_PATH=\"${PACK_PATH}/tests/\"\n+\n+SENSORS_PATH=\"${PACK_PATH}/sensors/\"\n+ACTIONS_PATH=\"${PACK_PATH}/actions/\"\n+ETC_PATH=\"${PACK_PATH}/etc/\"\n+\n+# Bail early if no tests are found, this way we don't need to wait for\n+# environment set up.\n+if [  ! -d ${PACK_TESTS_PATH} ]; then\n+    echo \"Running tests for pack: ${PACK_NAME}\"\n+    echo \"No tests found.\"\n+    exit 0","path":"utils/run_tests.sh","position":53,"original_position":53,"commit_id":"a57e9c6395f61d67fafefa4bc0d9718ab604f939","original_commit_id":"a57e9c6395f61d67fafefa4bc0d9718ab604f939","user":{"login":"johanherman","id":11720374,"avatar_url":"https://avatars.githubusercontent.com/u/11720374?v=3","gravatar_id":"","url":"https://api.github.com/users/johanherman","html_url":"https://github.com/johanherman","followers_url":"https://api.github.com/users/johanherman/followers","following_url":"https://api.github.com/users/johanherman/following{/other_user}","gists_url":"https://api.github.com/users/johanherman/gists{/gist_id}","starred_url":"https://api.github.com/users/johanherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanherman/subscriptions","organizations_url":"https://api.github.com/users/johanherman/orgs","repos_url":"https://api.github.com/users/johanherman/repos","events_url":"https://api.github.com/users/johanherman/events{/privacy}","received_events_url":"https://api.github.com/users/johanherman/received_events","type":"User","site_admin":false},"body":"Perhaps you should do an exit != 0 here, as this will pass otherwise as can be seen by the latest travis run. ","created_at":"2016-08-23T17:12:09Z","updated_at":"2016-08-23T17:12:09Z","html_url":"https://github.com/arteria-project/arteria-packs/pull/35#discussion_r75910061","pull_request_url":"https://api.github.com/repos/arteria-project/arteria-packs/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/arteria-project/arteria-packs/pulls/comments/75910061"},"html":{"href":"https://github.com/arteria-project/arteria-packs/pull/35#discussion_r75910061"},"pull_request":{"href":"https://api.github.com/repos/arteria-project/arteria-packs/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/arteria-project/arteria-packs/pulls/35","id":80072141,"html_url":"https://github.com/arteria-project/arteria-packs/pull/35","diff_url":"https://github.com/arteria-project/arteria-packs/pull/35.diff","patch_url":"https://github.com/arteria-project/arteria-packs/pull/35.patch","issue_url":"https://api.github.com/repos/arteria-project/arteria-packs/issues/35","number":35,"state":"open","locked":false,"title":"WIP: Setup pack testing","user":{"login":"johandahlberg","id":1788862,"avatar_url":"https://avatars.githubusercontent.com/u/1788862?v=3","gravatar_id":"","url":"https://api.github.com/users/johandahlberg","html_url":"https://github.com/johandahlberg","followers_url":"https://api.github.com/users/johandahlberg/followers","following_url":"https://api.github.com/users/johandahlberg/following{/other_user}","gists_url":"https://api.github.com/users/johandahlberg/gists{/gist_id}","starred_url":"https://api.github.com/users/johandahlberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johandahlberg/subscriptions","organizations_url":"https://api.github.com/users/johandahlberg/orgs","repos_url":"https://api.github.com/users/johandahlberg/repos","events_url":"https://api.github.com/users/johandahlberg/events{/privacy}","received_events_url":"https://api.github.com/users/johandahlberg/received_events","type":"User","site_admin":false},"body":"Experimentation with setting up auto-tests for this repository. Please note it's not yet ready to be merged.","created_at":"2016-08-04T12:48:11Z","updated_at":"2016-08-23T17:12:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"784a0d7ebe056becaa0bf5c7533dcafdade3ea74","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/arteria-project/arteria-packs/pulls/35/commits","review_comments_url":"https://api.github.com/repos/arteria-project/arteria-packs/pulls/35/comments","review_comment_url":"https://api.github.com/repos/arteria-project/arteria-packs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arteria-project/arteria-packs/issues/35/comments","statuses_url":"https://api.github.com/repos/arteria-project/arteria-packs/statuses/a57e9c6395f61d67fafefa4bc0d9718ab604f939","head":{"label":"johandahlberg:setup_pack_testing","ref":"setup_pack_testing","sha":"a57e9c6395f61d67fafefa4bc0d9718ab604f939","user":{"login":"johandahlberg","id":1788862,"avatar_url":"https://avatars.githubusercontent.com/u/1788862?v=3","gravatar_id":"","url":"https://api.github.com/users/johandahlberg","html_url":"https://github.com/johandahlberg","followers_url":"https://api.github.com/users/johandahlberg/followers","following_url":"https://api.github.com/users/johandahlberg/following{/other_user}","gists_url":"https://api.github.com/users/johandahlberg/gists{/gist_id}","starred_url":"https://api.github.com/users/johandahlberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johandahlberg/subscriptions","organizations_url":"https://api.github.com/users/johandahlberg/orgs","repos_url":"https://api.github.com/users/johandahlberg/repos","events_url":"https://api.github.com/users/johandahlberg/events{/privacy}","received_events_url":"https://api.github.com/users/johandahlberg/received_events","type":"User","site_admin":false},"repo":{"id":41162557,"name":"arteria-packs","full_name":"johandahlberg/arteria-packs","owner":{"login":"johandahlberg","id":1788862,"avatar_url":"https://avatars.githubusercontent.com/u/1788862?v=3","gravatar_id":"","url":"https://api.github.com/users/johandahlberg","html_url":"https://github.com/johandahlberg","followers_url":"https://api.github.com/users/johandahlberg/followers","following_url":"https://api.github.com/users/johandahlberg/following{/other_user}","gists_url":"https://api.github.com/users/johandahlberg/gists{/gist_id}","starred_url":"https://api.github.com/users/johandahlberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johandahlberg/subscriptions","organizations_url":"https://api.github.com/users/johandahlberg/orgs","repos_url":"https://api.github.com/users/johandahlberg/repos","events_url":"https://api.github.com/users/johandahlberg/events{/privacy}","received_events_url":"https://api.github.com/users/johandahlberg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johandahlberg/arteria-packs","description":"StackStorm packs to automate sequencing center operations","fork":true,"url":"https://api.github.com/repos/johandahlberg/arteria-packs","forks_url":"https://api.github.com/repos/johandahlberg/arteria-packs/forks","keys_url":"https://api.github.com/repos/johandahlberg/arteria-packs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johandahlberg/arteria-packs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johandahlberg/arteria-packs/teams","hooks_url":"https://api.github.com/repos/johandahlberg/arteria-packs/hooks","issue_events_url":"https://api.github.com/repos/johandahlberg/arteria-packs/issues/events{/number}","events_url":"https://api.github.com/repos/johandahlberg/arteria-packs/events","assignees_url":"https://api.github.com/repos/johandahlberg/arteria-packs/assignees{/user}","branches_url":"https://api.github.com/repos/johandahlberg/arteria-packs/branches{/branch}","tags_url":"https://api.github.com/repos/johandahlberg/arteria-packs/tags","blobs_url":"https://api.github.com/repos/johandahlberg/arteria-packs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johandahlberg/arteria-packs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johandahlberg/arteria-packs/git/refs{/sha}","trees_url":"https://api.github.com/repos/johandahlberg/arteria-packs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johandahlberg/arteria-packs/statuses/{sha}","languages_url":"https://api.github.com/repos/johandahlberg/arteria-packs/languages","stargazers_url":"https://api.github.com/repos/johandahlberg/arteria-packs/stargazers","contributors_url":"https://api.github.com/repos/johandahlberg/arteria-packs/contributors","subscribers_url":"https://api.github.com/repos/johandahlberg/arteria-packs/subscribers","subscription_url":"https://api.github.com/repos/johandahlberg/arteria-packs/subscription","commits_url":"https://api.github.com/repos/johandahlberg/arteria-packs/commits{/sha}","git_commits_url":"https://api.github.com/repos/johandahlberg/arteria-packs/git/commits{/sha}","comments_url":"https://api.github.com/repos/johandahlberg/arteria-packs/comments{/number}","issue_comment_url":"https://api.github.com/repos/johandahlberg/arteria-packs/issues/comments{/number}","contents_url":"https://api.github.com/repos/johandahlberg/arteria-packs/contents/{+path}","compare_url":"https://api.github.com/repos/johandahlberg/arteria-packs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johandahlberg/arteria-packs/merges","archive_url":"https://api.github.com/repos/johandahlberg/arteria-packs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johandahlberg/arteria-packs/downloads","issues_url":"https://api.github.com/repos/johandahlberg/arteria-packs/issues{/number}","pulls_url":"https://api.github.com/repos/johandahlberg/arteria-packs/pulls{/number}","milestones_url":"https://api.github.com/repos/johandahlberg/arteria-packs/milestones{/number}","notifications_url":"https://api.github.com/repos/johandahlberg/arteria-packs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johandahlberg/arteria-packs/labels{/name}","releases_url":"https://api.github.com/repos/johandahlberg/arteria-packs/releases{/id}","deployments_url":"https://api.github.com/repos/johandahlberg/arteria-packs/deployments","created_at":"2015-08-21T15:14:07Z","updated_at":"2016-03-02T15:45:21Z","pushed_at":"2016-08-23T15:44:22Z","git_url":"git://github.com/johandahlberg/arteria-packs.git","ssh_url":"git@github.com:johandahlberg/arteria-packs.git","clone_url":"https://github.com/johandahlberg/arteria-packs.git","svn_url":"https://github.com/johandahlberg/arteria-packs","homepage":null,"size":147,"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":"arteria-project:master","ref":"master","sha":"29a18af5c85c878dcd554963dce86e33225cb7d8","user":{"login":"arteria-project","id":13848054,"avatar_url":"https://avatars.githubusercontent.com/u/13848054?v=3","gravatar_id":"","url":"https://api.github.com/users/arteria-project","html_url":"https://github.com/arteria-project","followers_url":"https://api.github.com/users/arteria-project/followers","following_url":"https://api.github.com/users/arteria-project/following{/other_user}","gists_url":"https://api.github.com/users/arteria-project/gists{/gist_id}","starred_url":"https://api.github.com/users/arteria-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arteria-project/subscriptions","organizations_url":"https://api.github.com/users/arteria-project/orgs","repos_url":"https://api.github.com/users/arteria-project/repos","events_url":"https://api.github.com/users/arteria-project/events{/privacy}","received_events_url":"https://api.github.com/users/arteria-project/received_events","type":"Organization","site_admin":false},"repo":{"id":37130995,"name":"arteria-packs","full_name":"arteria-project/arteria-packs","owner":{"login":"arteria-project","id":13848054,"avatar_url":"https://avatars.githubusercontent.com/u/13848054?v=3","gravatar_id":"","url":"https://api.github.com/users/arteria-project","html_url":"https://github.com/arteria-project","followers_url":"https://api.github.com/users/arteria-project/followers","following_url":"https://api.github.com/users/arteria-project/following{/other_user}","gists_url":"https://api.github.com/users/arteria-project/gists{/gist_id}","starred_url":"https://api.github.com/users/arteria-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arteria-project/subscriptions","organizations_url":"https://api.github.com/users/arteria-project/orgs","repos_url":"https://api.github.com/users/arteria-project/repos","events_url":"https://api.github.com/users/arteria-project/events{/privacy}","received_events_url":"https://api.github.com/users/arteria-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/arteria-project/arteria-packs","description":"StackStorm packs to automate sequencing center operations","fork":false,"url":"https://api.github.com/repos/arteria-project/arteria-packs","forks_url":"https://api.github.com/repos/arteria-project/arteria-packs/forks","keys_url":"https://api.github.com/repos/arteria-project/arteria-packs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arteria-project/arteria-packs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arteria-project/arteria-packs/teams","hooks_url":"https://api.github.com/repos/arteria-project/arteria-packs/hooks","issue_events_url":"https://api.github.com/repos/arteria-project/arteria-packs/issues/events{/number}","events_url":"https://api.github.com/repos/arteria-project/arteria-packs/events","assignees_url":"https://api.github.com/repos/arteria-project/arteria-packs/assignees{/user}","branches_url":"https://api.github.com/repos/arteria-project/arteria-packs/branches{/branch}","tags_url":"https://api.github.com/repos/arteria-project/arteria-packs/tags","blobs_url":"https://api.github.com/repos/arteria-project/arteria-packs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arteria-project/arteria-packs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arteria-project/arteria-packs/git/refs{/sha}","trees_url":"https://api.github.com/repos/arteria-project/arteria-packs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arteria-project/arteria-packs/statuses/{sha}","languages_url":"https://api.github.com/repos/arteria-project/arteria-packs/languages","stargazers_url":"https://api.github.com/repos/arteria-project/arteria-packs/stargazers","contributors_url":"https://api.github.com/repos/arteria-project/arteria-packs/contributors","subscribers_url":"https://api.github.com/repos/arteria-project/arteria-packs/subscribers","subscription_url":"https://api.github.com/repos/arteria-project/arteria-packs/subscription","commits_url":"https://api.github.com/repos/arteria-project/arteria-packs/commits{/sha}","git_commits_url":"https://api.github.com/repos/arteria-project/arteria-packs/git/commits{/sha}","comments_url":"https://api.github.com/repos/arteria-project/arteria-packs/comments{/number}","issue_comment_url":"https://api.github.com/repos/arteria-project/arteria-packs/issues/comments{/number}","contents_url":"https://api.github.com/repos/arteria-project/arteria-packs/contents/{+path}","compare_url":"https://api.github.com/repos/arteria-project/arteria-packs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arteria-project/arteria-packs/merges","archive_url":"https://api.github.com/repos/arteria-project/arteria-packs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arteria-project/arteria-packs/downloads","issues_url":"https://api.github.com/repos/arteria-project/arteria-packs/issues{/number}","pulls_url":"https://api.github.com/repos/arteria-project/arteria-packs/pulls{/number}","milestones_url":"https://api.github.com/repos/arteria-project/arteria-packs/milestones{/number}","notifications_url":"https://api.github.com/repos/arteria-project/arteria-packs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arteria-project/arteria-packs/labels{/name}","releases_url":"https://api.github.com/repos/arteria-project/arteria-packs/releases{/id}","deployments_url":"https://api.github.com/repos/arteria-project/arteria-packs/deployments","created_at":"2015-06-09T12:36:27Z","updated_at":"2016-03-16T15:49:53Z","pushed_at":"2016-08-23T15:44:23Z","git_url":"git://github.com/arteria-project/arteria-packs.git","ssh_url":"git@github.com:arteria-project/arteria-packs.git","clone_url":"https://github.com/arteria-project/arteria-packs.git","svn_url":"https://github.com/arteria-project/arteria-packs","homepage":null,"size":137,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/arteria-project/arteria-packs/pulls/35"},"html":{"href":"https://github.com/arteria-project/arteria-packs/pull/35"},"issue":{"href":"https://api.github.com/repos/arteria-project/arteria-packs/issues/35"},"comments":{"href":"https://api.github.com/repos/arteria-project/arteria-packs/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/arteria-project/arteria-packs/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/arteria-project/arteria-packs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arteria-project/arteria-packs/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/arteria-project/arteria-packs/statuses/a57e9c6395f61d67fafefa4bc0d9718ab604f939"}}}}
{"actor":{"display_login":"johanherman"}}