This is an automated email from the ASF dual-hosted git repository.

dkuppitz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/master by this push:
     new 078e772  CTR: Fixed validation script (removed invisible control 
characters from Gremlin console output)
078e772 is described below

commit 078e7721523a0537596da33891667213fba86dbd
Author: Daniel Kuppitz <[email protected]>
AuthorDate: Fri Jan 4 14:13:11 2019 -0700

    CTR: Fixed validation script (removed invisible control characters from 
Gremlin console output)
---
 bin/validate-distribution.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/validate-distribution.sh b/bin/validate-distribution.sh
index 55cb164..2a8ce6c 100755
--- a/bin/validate-distribution.sh
+++ b/bin/validate-distribution.sh
@@ -194,7 +194,7 @@ if [ "${TYPE}" = "CONSOLE" ]; then
   SCRIPT_FILENAME="test.groovy"
   SCRIPT_PATH="${TMP_DIR}/${SCRIPT_FILENAME}"
   echo ${SCRIPT} > ${SCRIPT_PATH}
-  [[ `bin/gremlin.sh <<< ${SCRIPT} | grep '^==>' | sed -e 's/^==>//'` -eq 6 ]] 
|| { echo "failed to evaluate sample script"; exit 1; }
+  [[ `bin/gremlin.sh <<< ${SCRIPT} | sed 's/\x1b\[m//g' | grep '^==>' | sed -e 
's/^==>//'` -eq 6 ]] || { echo "failed to evaluate sample script"; exit 1; }
   [[ `bin/gremlin.sh -e ${SCRIPT_PATH}` -eq 6 ]] || { echo "failed to evaluate 
sample script using -e option"; exit 1; }
   CONSOLE_DIR=`pwd`
   cd ${TMP_DIR}

Reply via email to