GitHub PullRequestReviewCommentEvent at 2014-06-03 06:48:58
Repository: fiware-orion
Actor: fgalan
Payload: {"comment":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/pulls/comments/13321183","id":13321183,"diff_hunk":"@@ -0,0 +1,539 @@\n+#!/bin/bash\n+# -*- coding: latin-1 -*-\n+# Copyright 2014 Telefonica Investigacion y Desarrollo, S.A.U\n+#\n+# This file is part of Orion Context Broker.\n+#\n+# Orion Context Broker is free software: you can redistribute it and/or\n+# modify it under the terms of the GNU Affero General Public License as\n+# published by the Free Software Foundation, either version 3 of the\n+# License, or (at your option) any later version.\n+#\n+# Orion Context Broker 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. See the GNU Affero\n+# General Public License for more details.\n+#\n+# You should have received a copy of the GNU Affero General Public License\n+# along with Orion Context Broker. If not, see http://www.gnu.org/licenses/.\n+#\n+# For those usages not covered by this license please contact with\n+# fermin at tid dot es\n+#\n+# Author: Ken Zangelin\n+\n+\n+\n+# -----------------------------------------------------------------------------\n+#\n+# Env vars\n+#\n+export LC_ALL=C\n+export DIFF=../../scripts/testDiff.py\n+export NAME=\"testFile\"\n+declare -A testErrorV\n+typeset -i testError\n+testError=0\n+\n+\n+# -----------------------------------------------------------------------------\n+#\n+# usage\n+#\n+function usage()\n+{\n+  echo $0 \"[-u (usage)] [-v (verbose)] [--filter <test filter>] [--keep (don't remove output files)] [--dryrun (don't execute any tests)] [--dir <directory>] [--stopOnError (stop at first error encountered)]\"\n+  exit $1\n+}\n+\n+\n+\n+# -----------------------------------------------------------------------------\n+#\n+# vMsg\n+#\n+function vMsg()\n+{\n+  if [ \"$verbose\" = \"on\" ]\n+  then\n+    echo $YO: $*\n+  fi\n+}\n+\n+\n+\n+# -----------------------------------------------------------------------------\n+#\n+# exitFunction\n+#\n+function exitFunction()\n+{\n+  exitCode=$1\n+  testFile=$2\n+  errorString=$3\n+  errorFile=$4\n+  forced=$5\n+\n+  echo -n \"(ERROR $exitCode) \"\n+\n+  if [ \"$stopOnError\" == \"on\" ] || [ \"$forced\" == \"DIE\" ]\n+  then\n+    echo $YO/$NAME: $errorString\n+    cat $errorFile 2> /dev/null\n+    exit $exitCode\n+  fi\n+\n+  echo                         >> /tmp/orionFuncTestLog\n+  echo '----- ' $NAME ' -----' >> /tmp/orionFuncTestLog\n+  echo $errorString            >> /tmp/orionFuncTestLog\n+\n+  if [ \"$errorFile\" != \"\" ] && [ -f \"$errorFile\" ]\n+  then\n+    cat $errorFile               >> /tmp/orionFuncTestLog   2> /dev/null\n+    echo                         >> /tmp/orionFuncTestLog\n+  fi\n+\n+  echo                         >> /tmp/orionFuncTestLog\n+\n+  testErrorV[$testError]=$testFile\n+  testError=$testError+1\n+  toBeStopped=true;\n+}\n+\n+\n+\n+# ------------------------------------------------------------------------------\n+#\n+# YO - name of script, to be used in error and verbose messages \n+#\n+YO=$(basename $0)","path":"scripts/funcTest.sh","position":109,"original_position":109,"commit_id":"cd71ec2fcd8d4acb80c1f22d3b41f7102a4c56eb","original_commit_id":"cd71ec2fcd8d4acb80c1f22d3b41f7102a4c56eb","user":{"login":"fgalan","id":1534240,"avatar_url":"https://avatars.githubusercontent.com/u/1534240?","gravatar_id":"1936b0d16210811a2aa8de96295f0693","url":"https://api.github.com/users/fgalan","html_url":"https://github.com/fgalan","followers_url":"https://api.github.com/users/fgalan/followers","following_url":"https://api.github.com/users/fgalan/following{/other_user}","gists_url":"https://api.github.com/users/fgalan/gists{/gist_id}","starred_url":"https://api.github.com/users/fgalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgalan/subscriptions","organizations_url":"https://api.github.com/users/fgalan/orgs","repos_url":"https://api.github.com/users/fgalan/repos","events_url":"https://api.github.com/users/fgalan/events{/privacy}","received_events_url":"https://api.github.com/users/fgalan/received_events","type":"User","site_admin":false},"body":"Funny name for a variable... :) Is \"YO\" supposed to be Spanish? I'd use a word in English, pe. \"ME\".","created_at":"2014-06-03T06:48:58Z","updated_at":"2014-06-03T06:48:58Z","html_url":"https://github.com/telefonicaid/fiware-orion/pull/394#discussion_r13321183","pull_request_url":"https://api.github.com/repos/telefonicaid/fiware-orion/pulls/394","_links":{"self":{"href":"https://api.github.com/repos/telefonicaid/fiware-orion/pulls/comments/13321183"},"html":{"href":"https://github.com/telefonicaid/fiware-orion/pull/394#discussion_r13321183"},"pull_request":{"href":"https://api.github.com/repos/telefonicaid/fiware-orion/pulls/394"}}}}