Skip to content

Commit

Permalink
Added note in error_detector.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
terrytangyuan committed Dec 29, 2015
1 parent 111158c commit 1d988d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/travis/error_detector.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 1d988d5

Please sign in to comment.