tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [33/50] [abbrv] tinkerpop git commit: Enhanced pre-processor output for failure cases.
Date Thu, 30 Jun 2016 17:34:02 GMT
Enhanced pre-processor output for failure cases.


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/98f09bad
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/98f09bad
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/98f09bad

Branch: refs/heads/TINKERPOP-1274
Commit: 98f09bad615c2be3b5f8a4145f9a106977f13d6b
Parents: 82afed3
Author: Daniel Kuppitz <daniel_kuppitz@hotmail.com>
Authored: Tue Jun 28 14:02:32 2016 +0200
Committer: Daniel Kuppitz <daniel_kuppitz@hotmail.com>
Committed: Tue Jun 28 14:02:32 2016 +0200

----------------------------------------------------------------------
 docs/preprocessor/preprocess-file.sh | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/98f09bad/docs/preprocessor/preprocess-file.sh
----------------------------------------------------------------------
diff --git a/docs/preprocessor/preprocess-file.sh b/docs/preprocessor/preprocess-file.sh
index 35b1f15..57a8b98 100755
--- a/docs/preprocessor/preprocess-file.sh
+++ b/docs/preprocessor/preprocess-file.sh
@@ -71,6 +71,13 @@ fi
 trap cleanup INT
 
 function cleanup {
+  if [ -f "${output}" ]; then
+    if [ `wc -l /tmp/foo | awk '{print $1}'` -gt 0 ]; then
+      echo -e "\n\e[1mLast 10 lines of ${output}:\e[0m\n"
+      tail -n10 ${output}
+      echo
+    fi
+  fi
   rm -rf ${output} ${CONSOLE_HOME}/.ext
   exit 255
 }


Mime
View raw message