aboutsummaryrefslogtreecommitdiff
path: root/dev/scalastyle
diff options
context:
space:
mode:
authorPrashant Sharma <prashant.s@imaginea.com>2014-04-04 22:49:19 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-04-04 22:49:19 -0700
commit7c18428fac1403eb9c69b61890453964b255c432 (patch)
treed732d39bc004cd4bb816512ef9a7dd7e9e690f3e /dev/scalastyle
parent0acc7a02b4323f4e0b7736bc1999bdcedab41f39 (diff)
downloadspark-7c18428fac1403eb9c69b61890453964b255c432.tar.gz
spark-7c18428fac1403eb9c69b61890453964b255c432.tar.bz2
spark-7c18428fac1403eb9c69b61890453964b255c432.zip
HOTFIX for broken CI, by SPARK-1336
Learnt about `set -o pipefail` is very useful. Author: Prashant Sharma <prashant.s@imaginea.com> Author: Prashant Sharma <scrapcodes@gmail.com> Closes #321 from ScrapCodes/hf-SPARK-1336 and squashes the following commits: 9d22bc2 [Prashant Sharma] added comment why echo -e q exists. f865951 [Prashant Sharma] made error to match with word boundry so errors does not match. This is there to make sure build fails if provided SparkBuild has compile errors. 7fffdf2 [Prashant Sharma] Removed a stray line. 97379d8 [Prashant Sharma] HOTFIX for broken CI, by SPARK-1336
Diffstat (limited to 'dev/scalastyle')
-rwxr-xr-xdev/scalastyle4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/scalastyle b/dev/scalastyle
index 5a18f4d672..19955b9aaa 100755
--- a/dev/scalastyle
+++ b/dev/scalastyle
@@ -17,8 +17,8 @@
# limitations under the License.
#
-sbt/sbt clean scalastyle > scalastyle.txt
-ERRORS=$(cat scalastyle.txt | grep -e "error file")
+echo -e "q\n" | sbt/sbt clean scalastyle > scalastyle.txt
+ERRORS=$(cat scalastyle.txt | grep -e "\<error\>")
if test ! -z "$ERRORS"; then
echo -e "Scalastyle checks failed at following occurrences:\n$ERRORS"
exit 1