From 1d988d5a454ea9b10ff83200793eab6bc8981c18 Mon Sep 17 00:00:00 2001 From: "Yuan (Terry) Tang" Date: Mon, 28 Dec 2015 18:32:11 -0600 Subject: [PATCH] Added note in error_detector.sh --- tests/travis/error_detector.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/travis/error_detector.sh b/tests/travis/error_detector.sh index 9236a3afd208..73cfec6a53c8 100755 --- a/tests/travis/error_detector.sh +++ b/tests/travis/error_detector.sh @@ -1,8 +1,14 @@ #!/bin/bash + +# This script is mainly used to catch errors from maven results for Scala +# to avoid false positives/negatives from Travis's interpretation. + file=scala_test_results.txt testFail=$(grep -ci "All tests passed" $file) + if [ "$testFail" == "0" ]; then + # print results if anything fails cat $file echo "Some unit tests failed. " exit 1