{"action":"closed","number":460,"pull_request":{"url":"https://api.github.com/repos/avocado-framework/avocado/pulls/460","id":30541827,"html_url":"https://github.com/avocado-framework/avocado/pull/460","diff_url":"https://github.com/avocado-framework/avocado/pull/460.diff","patch_url":"https://github.com/avocado-framework/avocado/pull/460.patch","issue_url":"https://api.github.com/repos/avocado-framework/avocado/issues/460","number":460,"state":"closed","locked":false,"title":"scripts.avocado-bash-utils: Add Avocado bash utils [v3]","user":{"login":"ldoktor","id":1074021,"avatar_url":"https://avatars.githubusercontent.com/u/1074021?v=3","gravatar_id":"","url":"https://api.github.com/users/ldoktor","html_url":"https://github.com/ldoktor","followers_url":"https://api.github.com/users/ldoktor/followers","following_url":"https://api.github.com/users/ldoktor/following{/other_user}","gists_url":"https://api.github.com/users/ldoktor/gists{/gist_id}","starred_url":"https://api.github.com/users/ldoktor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldoktor/subscriptions","organizations_url":"https://api.github.com/users/ldoktor/orgs","repos_url":"https://api.github.com/users/ldoktor/repos","events_url":"https://api.github.com/users/ldoktor/events{/privacy}","received_events_url":"https://api.github.com/users/ldoktor/received_events","type":"User","site_admin":false},"body":"This patch is initial support for people using custom bash scripts\r\nwith avocado. They can use \"source avocado-bash-utils\" to get the\r\nfunctions into their bash script and utilize them.\r\n\r\nThis version contain functions to write to Test.log the same way it's\r\npossible from python including failing the test with TestWarn in case\r\navocado_warn was used.\r\n\r\nv0: https://github.com/avocado-framework/avocado/pull/419\r\nv1: https://github.com/avocado-framework/avocado/pull/428\r\nv2: https://github.com/avocado-framework/avocado/pull/447\r\n\r\n    v1: Instead of custom logging to self and whole job logs use stdout\r\n    v1: Simplify the in-bash-log format to \"$time $log_level |\"\r\n    v1: Use regexp to check \"warning\" presense (decrease probability of false-warnings)\r\n    v2: Added documentation\r\n    v2: Added functional test\r\n    v2: Auto-append \"$AVOCAOD/scripts\" path to PATH when executing from sources\r\n    v2: Added missing space in error message\r\n    v3: Removed the non-verbose execution as it corrupts `stdout`/`stderr`","created_at":"2015-03-05T09:34:25Z","updated_at":"2015-03-23T17:27:31Z","closed_at":"2015-03-23T17:27:31Z","merged_at":null,"merge_commit_sha":"952ae8781031a6c2b74d8ad960e3cb6b50ebd3ca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/avocado-framework/avocado/pulls/460/commits","review_comments_url":"https://api.github.com/repos/avocado-framework/avocado/pulls/460/comments","review_comment_url":"https://api.github.com/repos/avocado-framework/avocado/pulls/comments{/number}","comments_url":"https://api.github.com/repos/avocado-framework/avocado/issues/460/comments","statuses_url":"https://api.github.com/repos/avocado-framework/avocado/statuses/e88fbce484c7552daede944b48db9e74fcd05acc","head":{"label":"ldoktor:bash_utils3","ref":"bash_utils3","sha":"e88fbce484c7552daede944b48db9e74fcd05acc","user":{"login":"ldoktor","id":1074021,"avatar_url":"https://avatars.githubusercontent.com/u/1074021?v=3","gravatar_id":"","url":"https://api.github.com/users/ldoktor","html_url":"https://github.com/ldoktor","followers_url":"https://api.github.com/users/ldoktor/followers","following_url":"https://api.github.com/users/ldoktor/following{/other_user}","gists_url":"https://api.github.com/users/ldoktor/gists{/gist_id}","starred_url":"https://api.github.com/users/ldoktor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldoktor/subscriptions","organizations_url":"https://api.github.com/users/ldoktor/orgs","repos_url":"https://api.github.com/users/ldoktor/repos","events_url":"https://api.github.com/users/ldoktor/events{/privacy}","received_events_url":"https://api.github.com/users/ldoktor/received_events","type":"User","site_admin":false},"repo":{"id":26808700,"name":"avocado","full_name":"ldoktor/avocado","owner":{"login":"ldoktor","id":1074021,"avatar_url":"https://avatars.githubusercontent.com/u/1074021?v=3","gravatar_id":"","url":"https://api.github.com/users/ldoktor","html_url":"https://github.com/ldoktor","followers_url":"https://api.github.com/users/ldoktor/followers","following_url":"https://api.github.com/users/ldoktor/following{/other_user}","gists_url":"https://api.github.com/users/ldoktor/gists{/gist_id}","starred_url":"https://api.github.com/users/ldoktor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldoktor/subscriptions","organizations_url":"https://api.github.com/users/ldoktor/orgs","repos_url":"https://api.github.com/users/ldoktor/repos","events_url":"https://api.github.com/users/ldoktor/events{/privacy}","received_events_url":"https://api.github.com/users/ldoktor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ldoktor/avocado","description":"Avocado Test Framework","fork":true,"url":"https://api.github.com/repos/ldoktor/avocado","forks_url":"https://api.github.com/repos/ldoktor/avocado/forks","keys_url":"https://api.github.com/repos/ldoktor/avocado/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ldoktor/avocado/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ldoktor/avocado/teams","hooks_url":"https://api.github.com/repos/ldoktor/avocado/hooks","issue_events_url":"https://api.github.com/repos/ldoktor/avocado/issues/events{/number}","events_url":"https://api.github.com/repos/ldoktor/avocado/events","assignees_url":"https://api.github.com/repos/ldoktor/avocado/assignees{/user}","branches_url":"https://api.github.com/repos/ldoktor/avocado/branches{/branch}","tags_url":"https://api.github.com/repos/ldoktor/avocado/tags","blobs_url":"https://api.github.com/repos/ldoktor/avocado/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ldoktor/avocado/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ldoktor/avocado/git/refs{/sha}","trees_url":"https://api.github.com/repos/ldoktor/avocado/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ldoktor/avocado/statuses/{sha}","languages_url":"https://api.github.com/repos/ldoktor/avocado/languages","stargazers_url":"https://api.github.com/repos/ldoktor/avocado/stargazers","contributors_url":"https://api.github.com/repos/ldoktor/avocado/contributors","subscribers_url":"https://api.github.com/repos/ldoktor/avocado/subscribers","subscription_url":"https://api.github.com/repos/ldoktor/avocado/subscription","commits_url":"https://api.github.com/repos/ldoktor/avocado/commits{/sha}","git_commits_url":"https://api.github.com/repos/ldoktor/avocado/git/commits{/sha}","comments_url":"https://api.github.com/repos/ldoktor/avocado/comments{/number}","issue_comment_url":"https://api.github.com/repos/ldoktor/avocado/issues/comments{/number}","contents_url":"https://api.github.com/repos/ldoktor/avocado/contents/{+path}","compare_url":"https://api.github.com/repos/ldoktor/avocado/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ldoktor/avocado/merges","archive_url":"https://api.github.com/repos/ldoktor/avocado/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ldoktor/avocado/downloads","issues_url":"https://api.github.com/repos/ldoktor/avocado/issues{/number}","pulls_url":"https://api.github.com/repos/ldoktor/avocado/pulls{/number}","milestones_url":"https://api.github.com/repos/ldoktor/avocado/milestones{/number}","notifications_url":"https://api.github.com/repos/ldoktor/avocado/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ldoktor/avocado/labels{/name}","releases_url":"https://api.github.com/repos/ldoktor/avocado/releases{/id}","created_at":"2014-11-18T12:42:43Z","updated_at":"2014-11-18T12:42:43Z","pushed_at":"2015-03-23T17:15:06Z","git_url":"git://github.com/ldoktor/avocado.git","ssh_url":"git@github.com:ldoktor/avocado.git","clone_url":"https://github.com/ldoktor/avocado.git","svn_url":"https://github.com/ldoktor/avocado","homepage":"http://avocado-framework.readthedocs.org/en/latest/","size":4163,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"b1490e19e5221421c9011ba0e041ded38077af1a","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":17449498,"name":"avocado","full_name":"avocado-framework/avocado","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","description":"Avocado Test Framework","fork":false,"url":"https://api.github.com/repos/avocado-framework/avocado","forks_url":"https://api.github.com/repos/avocado-framework/avocado/forks","keys_url":"https://api.github.com/repos/avocado-framework/avocado/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avocado-framework/avocado/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avocado-framework/avocado/teams","hooks_url":"https://api.github.com/repos/avocado-framework/avocado/hooks","issue_events_url":"https://api.github.com/repos/avocado-framework/avocado/issues/events{/number}","events_url":"https://api.github.com/repos/avocado-framework/avocado/events","assignees_url":"https://api.github.com/repos/avocado-framework/avocado/assignees{/user}","branches_url":"https://api.github.com/repos/avocado-framework/avocado/branches{/branch}","tags_url":"https://api.github.com/repos/avocado-framework/avocado/tags","blobs_url":"https://api.github.com/repos/avocado-framework/avocado/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avocado-framework/avocado/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avocado-framework/avocado/git/refs{/sha}","trees_url":"https://api.github.com/repos/avocado-framework/avocado/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avocado-framework/avocado/statuses/{sha}","languages_url":"https://api.github.com/repos/avocado-framework/avocado/languages","stargazers_url":"https://api.github.com/repos/avocado-framework/avocado/stargazers","contributors_url":"https://api.github.com/repos/avocado-framework/avocado/contributors","subscribers_url":"https://api.github.com/repos/avocado-framework/avocado/subscribers","subscription_url":"https://api.github.com/repos/avocado-framework/avocado/subscription","commits_url":"https://api.github.com/repos/avocado-framework/avocado/commits{/sha}","git_commits_url":"https://api.github.com/repos/avocado-framework/avocado/git/commits{/sha}","comments_url":"https://api.github.com/repos/avocado-framework/avocado/comments{/number}","issue_comment_url":"https://api.github.com/repos/avocado-framework/avocado/issues/comments{/number}","contents_url":"https://api.github.com/repos/avocado-framework/avocado/contents/{+path}","compare_url":"https://api.github.com/repos/avocado-framework/avocado/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avocado-framework/avocado/merges","archive_url":"https://api.github.com/repos/avocado-framework/avocado/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avocado-framework/avocado/downloads","issues_url":"https://api.github.com/repos/avocado-framework/avocado/issues{/number}","pulls_url":"https://api.github.com/repos/avocado-framework/avocado/pulls{/number}","milestones_url":"https://api.github.com/repos/avocado-framework/avocado/milestones{/number}","notifications_url":"https://api.github.com/repos/avocado-framework/avocado/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avocado-framework/avocado/labels{/name}","releases_url":"https://api.github.com/repos/avocado-framework/avocado/releases{/id}","created_at":"2014-03-05T17:52:27Z","updated_at":"2015-03-20T15:09:50Z","pushed_at":"2015-03-23T17:20:11Z","git_url":"git://github.com/avocado-framework/avocado.git","ssh_url":"git@github.com:avocado-framework/avocado.git","clone_url":"https://github.com/avocado-framework/avocado.git","svn_url":"https://github.com/avocado-framework/avocado","homepage":"http://avocado-framework.github.io/","size":8851,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":15,"forks":15,"open_issues":15,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/460"},"html":{"href":"https://github.com/avocado-framework/avocado/pull/460"},"issue":{"href":"https://api.github.com/repos/avocado-framework/avocado/issues/460"},"comments":{"href":"https://api.github.com/repos/avocado-framework/avocado/issues/460/comments"},"review_comments":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/460/comments"},"review_comment":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/460/commits"},"statuses":{"href":"https://api.github.com/repos/avocado-framework/avocado/statuses/e88fbce484c7552daede944b48db9e74fcd05acc"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":2,"review_comments":0,"commits":1,"additions":83,"deletions":0,"changed_files":6}}