aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorKousuke Saruta <sarutak@oss.nttdata.co.jp>2014-10-08 15:19:19 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-10-08 15:19:19 -0700
commitadd174aa56d291bc48ef73a42c39428c923efe31 (patch)
tree500ae5104a7f339553aaebba8f158a60e190ad58 /dev
parentb92bd5a2f29f7a9ce270540b6a828fa7ff205cbe (diff)
downloadspark-add174aa56d291bc48ef73a42c39428c923efe31.tar.gz
spark-add174aa56d291bc48ef73a42c39428c923efe31.tar.bz2
spark-add174aa56d291bc48ef73a42c39428c923efe31.zip
[SPARK-3843][Minor] Cleanup scalastyle.txt at the end of running dev/scalastyle
dev/scalastyle create a log file 'scalastyle.txt'. it is overwrote per running but never deleted even though dev/mima and dev/lint-python delete their log files. Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp> Closes #2702 from sarutak/scalastyle-txt-cleanup and squashes the following commits: d6e238e [Kousuke Saruta] Fixed dev/scalastyle to cleanup scalastyle.txt
Diffstat (limited to 'dev')
-rwxr-xr-xdev/scalastyle2
1 files changed, 2 insertions, 0 deletions
diff --git a/dev/scalastyle b/dev/scalastyle
index efb5f291ea..c3b356bcb3 100755
--- a/dev/scalastyle
+++ b/dev/scalastyle
@@ -26,6 +26,8 @@ echo -e "q\n" | sbt/sbt -Pyarn -Phadoop-2.2 -Dhadoop.version=2.2.0 yarn/scalasty
>> scalastyle.txt
ERRORS=$(cat scalastyle.txt | grep -e "\<error\>")
+rm scalastyle.txt
+
if test ! -z "$ERRORS"; then
echo -e "Scalastyle checks failed at following occurrences:\n$ERRORS"
exit 1