{"action":"created","comment":{"url":"https://api.github.com/repos/outscale/butterfly/pulls/comments/69717693","id":69717693,"diff_hunk":"@@ -212,27 +212,33 @@ messages {\n   }\n }\n \" > $f\n-   \n+    request $but_id $nic_id $f\n+}\n+\n+function request {\n+    but_id=$1\n+    nic_id=$2\n+    f=$3\n     $BUTTERFLY_BUILD_ROOT/api/client/butterfly-client -e tcp://127.0.0.1:876$but_id -i $f\n     ret=$?\n     rm $f\n     if [ ! \"$ret\" == \"0\" ]; then\n-        echo \"client failed to send message to butterfly $but_id\"\n-        clean_all\n-        exit 1\n+\techo \"client failed to send message to butterfly $but_id\"\n+\tclean_all\n+\texit 1\n     fi\n     if ! test -e /tmp/qemu-vhost-nic-$nic_id ; then\n-        echo \"client failed: we should have a socket in /tmp/qemu-vhost-nic-$nic_id\"\n-        clean_all\n-        exit 1\n+\techo \"client failed: we should have a socket in /tmp/qemu-vhost-nic-$nic_id\"\n+\tclean_all\n+\texit 1\n     fi\n }\n \n-function client_del_nic {\n+function delete_nic {","path":"tests/functions.sh","position":null,"original_position":49,"commit_id":"5557b6e07657c5315efdc241b580175d9fa0f811","original_commit_id":"38d0138dd5a42ec54191fc6e1815f36d4737a7cb","user":{"login":"outscale-mgo","id":10047309,"avatar_url":"https://avatars.githubusercontent.com/u/10047309?v=3","gravatar_id":"","url":"https://api.github.com/users/outscale-mgo","html_url":"https://github.com/outscale-mgo","followers_url":"https://api.github.com/users/outscale-mgo/followers","following_url":"https://api.github.com/users/outscale-mgo/following{/other_user}","gists_url":"https://api.github.com/users/outscale-mgo/gists{/gist_id}","starred_url":"https://api.github.com/users/outscale-mgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outscale-mgo/subscriptions","organizations_url":"https://api.github.com/users/outscale-mgo/orgs","repos_url":"https://api.github.com/users/outscale-mgo/repos","events_url":"https://api.github.com/users/outscale-mgo/events{/privacy}","received_events_url":"https://api.github.com/users/outscale-mgo/received_events","type":"User","site_admin":false},"body":"you should have use request in this function.","created_at":"2016-07-06T12:04:17Z","updated_at":"2016-07-06T12:04:17Z","html_url":"https://github.com/outscale/butterfly/pull/39#discussion_r69717693","pull_request_url":"https://api.github.com/repos/outscale/butterfly/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/outscale/butterfly/pulls/comments/69717693"},"html":{"href":"https://github.com/outscale/butterfly/pull/39#discussion_r69717693"},"pull_request":{"href":"https://api.github.com/repos/outscale/butterfly/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/outscale/butterfly/pulls/39","id":73768539,"html_url":"https://github.com/outscale/butterfly/pull/39","diff_url":"https://github.com/outscale/butterfly/pull/39.diff","patch_url":"https://github.com/outscale/butterfly/pull/39.patch","issue_url":"https://api.github.com/repos/outscale/butterfly/issues/39","number":39,"state":"open","locked":false,"title":"Set udp scenario","user":{"login":"outscale-toa","id":16779167,"avatar_url":"https://avatars.githubusercontent.com/u/16779167?v=3","gravatar_id":"","url":"https://api.github.com/users/outscale-toa","html_url":"https://github.com/outscale-toa","followers_url":"https://api.github.com/users/outscale-toa/followers","following_url":"https://api.github.com/users/outscale-toa/following{/other_user}","gists_url":"https://api.github.com/users/outscale-toa/gists{/gist_id}","starred_url":"https://api.github.com/users/outscale-toa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outscale-toa/subscriptions","organizations_url":"https://api.github.com/users/outscale-toa/orgs","repos_url":"https://api.github.com/users/outscale-toa/repos","events_url":"https://api.github.com/users/outscale-toa/events{/privacy}","received_events_url":"https://api.github.com/users/outscale-toa/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-14T16:07:26Z","updated_at":"2016-07-06T12:04:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b2ccfe8b522adb59bb04471809e3cc90348b739","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/outscale/butterfly/pulls/39/commits","review_comments_url":"https://api.github.com/repos/outscale/butterfly/pulls/39/comments","review_comment_url":"https://api.github.com/repos/outscale/butterfly/pulls/comments{/number}","comments_url":"https://api.github.com/repos/outscale/butterfly/issues/39/comments","statuses_url":"https://api.github.com/repos/outscale/butterfly/statuses/5557b6e07657c5315efdc241b580175d9fa0f811","head":{"label":"outscale-toa:set_udp_scenario","ref":"set_udp_scenario","sha":"5557b6e07657c5315efdc241b580175d9fa0f811","user":{"login":"outscale-toa","id":16779167,"avatar_url":"https://avatars.githubusercontent.com/u/16779167?v=3","gravatar_id":"","url":"https://api.github.com/users/outscale-toa","html_url":"https://github.com/outscale-toa","followers_url":"https://api.github.com/users/outscale-toa/followers","following_url":"https://api.github.com/users/outscale-toa/following{/other_user}","gists_url":"https://api.github.com/users/outscale-toa/gists{/gist_id}","starred_url":"https://api.github.com/users/outscale-toa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outscale-toa/subscriptions","organizations_url":"https://api.github.com/users/outscale-toa/orgs","repos_url":"https://api.github.com/users/outscale-toa/repos","events_url":"https://api.github.com/users/outscale-toa/events{/privacy}","received_events_url":"https://api.github.com/users/outscale-toa/received_events","type":"User","site_admin":false},"repo":{"id":55783011,"name":"butterfly","full_name":"outscale-toa/butterfly","owner":{"login":"outscale-toa","id":16779167,"avatar_url":"https://avatars.githubusercontent.com/u/16779167?v=3","gravatar_id":"","url":"https://api.github.com/users/outscale-toa","html_url":"https://github.com/outscale-toa","followers_url":"https://api.github.com/users/outscale-toa/followers","following_url":"https://api.github.com/users/outscale-toa/following{/other_user}","gists_url":"https://api.github.com/users/outscale-toa/gists{/gist_id}","starred_url":"https://api.github.com/users/outscale-toa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outscale-toa/subscriptions","organizations_url":"https://api.github.com/users/outscale-toa/orgs","repos_url":"https://api.github.com/users/outscale-toa/repos","events_url":"https://api.github.com/users/outscale-toa/events{/privacy}","received_events_url":"https://api.github.com/users/outscale-toa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/outscale-toa/butterfly","description":"max_pkts","fork":true,"url":"https://api.github.com/repos/outscale-toa/butterfly","forks_url":"https://api.github.com/repos/outscale-toa/butterfly/forks","keys_url":"https://api.github.com/repos/outscale-toa/butterfly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/outscale-toa/butterfly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/outscale-toa/butterfly/teams","hooks_url":"https://api.github.com/repos/outscale-toa/butterfly/hooks","issue_events_url":"https://api.github.com/repos/outscale-toa/butterfly/issues/events{/number}","events_url":"https://api.github.com/repos/outscale-toa/butterfly/events","assignees_url":"https://api.github.com/repos/outscale-toa/butterfly/assignees{/user}","branches_url":"https://api.github.com/repos/outscale-toa/butterfly/branches{/branch}","tags_url":"https://api.github.com/repos/outscale-toa/butterfly/tags","blobs_url":"https://api.github.com/repos/outscale-toa/butterfly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/outscale-toa/butterfly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/outscale-toa/butterfly/git/refs{/sha}","trees_url":"https://api.github.com/repos/outscale-toa/butterfly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/outscale-toa/butterfly/statuses/{sha}","languages_url":"https://api.github.com/repos/outscale-toa/butterfly/languages","stargazers_url":"https://api.github.com/repos/outscale-toa/butterfly/stargazers","contributors_url":"https://api.github.com/repos/outscale-toa/butterfly/contributors","subscribers_url":"https://api.github.com/repos/outscale-toa/butterfly/subscribers","subscription_url":"https://api.github.com/repos/outscale-toa/butterfly/subscription","commits_url":"https://api.github.com/repos/outscale-toa/butterfly/commits{/sha}","git_commits_url":"https://api.github.com/repos/outscale-toa/butterfly/git/commits{/sha}","comments_url":"https://api.github.com/repos/outscale-toa/butterfly/comments{/number}","issue_comment_url":"https://api.github.com/repos/outscale-toa/butterfly/issues/comments{/number}","contents_url":"https://api.github.com/repos/outscale-toa/butterfly/contents/{+path}","compare_url":"https://api.github.com/repos/outscale-toa/butterfly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/outscale-toa/butterfly/merges","archive_url":"https://api.github.com/repos/outscale-toa/butterfly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/outscale-toa/butterfly/downloads","issues_url":"https://api.github.com/repos/outscale-toa/butterfly/issues{/number}","pulls_url":"https://api.github.com/repos/outscale-toa/butterfly/pulls{/number}","milestones_url":"https://api.github.com/repos/outscale-toa/butterfly/milestones{/number}","notifications_url":"https://api.github.com/repos/outscale-toa/butterfly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/outscale-toa/butterfly/labels{/name}","releases_url":"https://api.github.com/repos/outscale-toa/butterfly/releases{/id}","deployments_url":"https://api.github.com/repos/outscale-toa/butterfly/deployments","created_at":"2016-04-08T13:59:19Z","updated_at":"2016-04-08T13:59:20Z","pushed_at":"2016-07-06T08:13:15Z","git_url":"git://github.com/outscale-toa/butterfly.git","ssh_url":"git@github.com:outscale-toa/butterfly.git","clone_url":"https://github.com/outscale-toa/butterfly.git","svn_url":"https://github.com/outscale-toa/butterfly","homepage":"","size":841,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"outscale:master","ref":"master","sha":"a07437cb6f4861f38541e00fa43543c406cc43fb","user":{"login":"outscale","id":8233735,"avatar_url":"https://avatars.githubusercontent.com/u/8233735?v=3","gravatar_id":"","url":"https://api.github.com/users/outscale","html_url":"https://github.com/outscale","followers_url":"https://api.github.com/users/outscale/followers","following_url":"https://api.github.com/users/outscale/following{/other_user}","gists_url":"https://api.github.com/users/outscale/gists{/gist_id}","starred_url":"https://api.github.com/users/outscale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outscale/subscriptions","organizations_url":"https://api.github.com/users/outscale/orgs","repos_url":"https://api.github.com/users/outscale/repos","events_url":"https://api.github.com/users/outscale/events{/privacy}","received_events_url":"https://api.github.com/users/outscale/received_events","type":"Organization","site_admin":false},"repo":{"id":35087520,"name":"butterfly","full_name":"outscale/butterfly","owner":{"login":"outscale","id":8233735,"avatar_url":"https://avatars.githubusercontent.com/u/8233735?v=3","gravatar_id":"","url":"https://api.github.com/users/outscale","html_url":"https://github.com/outscale","followers_url":"https://api.github.com/users/outscale/followers","following_url":"https://api.github.com/users/outscale/following{/other_user}","gists_url":"https://api.github.com/users/outscale/gists{/gist_id}","starred_url":"https://api.github.com/users/outscale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outscale/subscriptions","organizations_url":"https://api.github.com/users/outscale/orgs","repos_url":"https://api.github.com/users/outscale/repos","events_url":"https://api.github.com/users/outscale/events{/privacy}","received_events_url":"https://api.github.com/users/outscale/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/outscale/butterfly","description":"max_pkts","fork":false,"url":"https://api.github.com/repos/outscale/butterfly","forks_url":"https://api.github.com/repos/outscale/butterfly/forks","keys_url":"https://api.github.com/repos/outscale/butterfly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/outscale/butterfly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/outscale/butterfly/teams","hooks_url":"https://api.github.com/repos/outscale/butterfly/hooks","issue_events_url":"https://api.github.com/repos/outscale/butterfly/issues/events{/number}","events_url":"https://api.github.com/repos/outscale/butterfly/events","assignees_url":"https://api.github.com/repos/outscale/butterfly/assignees{/user}","branches_url":"https://api.github.com/repos/outscale/butterfly/branches{/branch}","tags_url":"https://api.github.com/repos/outscale/butterfly/tags","blobs_url":"https://api.github.com/repos/outscale/butterfly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/outscale/butterfly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/outscale/butterfly/git/refs{/sha}","trees_url":"https://api.github.com/repos/outscale/butterfly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/outscale/butterfly/statuses/{sha}","languages_url":"https://api.github.com/repos/outscale/butterfly/languages","stargazers_url":"https://api.github.com/repos/outscale/butterfly/stargazers","contributors_url":"https://api.github.com/repos/outscale/butterfly/contributors","subscribers_url":"https://api.github.com/repos/outscale/butterfly/subscribers","subscription_url":"https://api.github.com/repos/outscale/butterfly/subscription","commits_url":"https://api.github.com/repos/outscale/butterfly/commits{/sha}","git_commits_url":"https://api.github.com/repos/outscale/butterfly/git/commits{/sha}","comments_url":"https://api.github.com/repos/outscale/butterfly/comments{/number}","issue_comment_url":"https://api.github.com/repos/outscale/butterfly/issues/comments{/number}","contents_url":"https://api.github.com/repos/outscale/butterfly/contents/{+path}","compare_url":"https://api.github.com/repos/outscale/butterfly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/outscale/butterfly/merges","archive_url":"https://api.github.com/repos/outscale/butterfly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/outscale/butterfly/downloads","issues_url":"https://api.github.com/repos/outscale/butterfly/issues{/number}","pulls_url":"https://api.github.com/repos/outscale/butterfly/pulls{/number}","milestones_url":"https://api.github.com/repos/outscale/butterfly/milestones{/number}","notifications_url":"https://api.github.com/repos/outscale/butterfly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/outscale/butterfly/labels{/name}","releases_url":"https://api.github.com/repos/outscale/butterfly/releases{/id}","deployments_url":"https://api.github.com/repos/outscale/butterfly/deployments","created_at":"2015-05-05T08:30:57Z","updated_at":"2016-01-25T15:59:17Z","pushed_at":"2016-07-06T08:06:38Z","git_url":"git://github.com/outscale/butterfly.git","ssh_url":"git@github.com:outscale/butterfly.git","clone_url":"https://github.com/outscale/butterfly.git","svn_url":"https://github.com/outscale/butterfly","homepage":"","size":948,"stargazers_count":3,"watchers_count":3,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":33,"forks":6,"open_issues":33,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/outscale/butterfly/pulls/39"},"html":{"href":"https://github.com/outscale/butterfly/pull/39"},"issue":{"href":"https://api.github.com/repos/outscale/butterfly/issues/39"},"comments":{"href":"https://api.github.com/repos/outscale/butterfly/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/outscale/butterfly/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/outscale/butterfly/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/outscale/butterfly/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/outscale/butterfly/statuses/5557b6e07657c5315efdc241b580175d9fa0f811"}}}}
{"actor":{"display_login":"outscale-mgo"}}