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