aboutsummaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
authorMarcelo Vanzin <vanzin@cloudera.com>2015-06-05 14:11:38 +0200
committerSean Owen <sowen@cloudera.com>2015-06-05 14:11:38 +0200
commitb16b5434ff44c42e4b3a337f9af147669ba44896 (patch)
tree47d87caa16e88d2e08a4f1794227ec5d5caff795 /pom.xml
parentda20c8ca37663738112b04657057858ee3e55072 (diff)
downloadspark-b16b5434ff44c42e4b3a337f9af147669ba44896.tar.gz
spark-b16b5434ff44c42e4b3a337f9af147669ba44896.tar.bz2
spark-b16b5434ff44c42e4b3a337f9af147669ba44896.zip
[MINOR] [BUILD] Use custom temp directory during build.
Even with all the efforts to cleanup the temp directories created by unit tests, Spark leaves a lot of garbage in /tmp after a test run. This change overrides java.io.tmpdir to place those files under the build directory instead. After an sbt full unit test run, I was left with > 400 MB of temp files. Since they're now under the build dir, it's much easier to clean them up. Also make a slight change to a unit test to make it not pollute the source directory with test data. Author: Marcelo Vanzin <vanzin@cloudera.com> Closes #6653 from vanzin/unit-test-tmp and squashes the following commits: 31e2dd5 [Marcelo Vanzin] Fix tests that depend on each other. aa92944 [Marcelo Vanzin] [minor] [build] Use custom temp directory during build.
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/pom.xml b/pom.xml
index e28d4b9fc2..a848deffe7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -179,7 +179,7 @@
<parquet.deps.scope>compile</parquet.deps.scope>
<!--
- Overridable test home. So that you can call individual pom files directory without
+ Overridable test home. So that you can call individual pom files directly without
things breaking.
-->
<spark.test.home>${session.executionRootDirectory}</spark.test.home>
@@ -1256,6 +1256,7 @@
<systemProperties>
<derby.system.durability>test</derby.system.durability>
<java.awt.headless>true</java.awt.headless>
+ <java.io.tmpdir>${project.build.directory}/tmp</java.io.tmpdir>
<spark.test.home>${spark.test.home}</spark.test.home>
<spark.testing>1</spark.testing>
<spark.ui.enabled>false</spark.ui.enabled>
@@ -1289,6 +1290,7 @@
<systemProperties>
<derby.system.durability>test</derby.system.durability>
<java.awt.headless>true</java.awt.headless>
+ <java.io.tmpdir>${project.build.directory}/tmp</java.io.tmpdir>
<spark.test.home>${spark.test.home}</spark.test.home>
<spark.testing>1</spark.testing>
<spark.ui.enabled>false</spark.ui.enabled>