You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by sp...@apache.org on 2017/11/18 14:17:11 UTC

sentry git commit: SENTRY-2054: Unit tests must create temporary files under the Maven target directory (Sergio Pena, reviewed by kalyan kumar kalvagadda)

Repository: sentry
Updated Branches:
  refs/heads/master 832e8da0f -> 0b487f378


SENTRY-2054: Unit tests must create temporary files under the Maven target directory (Sergio Pena, reviewed by kalyan kumar kalvagadda)


Project: http://git-wip-us.apache.org/repos/asf/sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/sentry/commit/0b487f37
Tree: http://git-wip-us.apache.org/repos/asf/sentry/tree/0b487f37
Diff: http://git-wip-us.apache.org/repos/asf/sentry/diff/0b487f37

Branch: refs/heads/master
Commit: 0b487f3787286e334e8157e4dc31c0bba83b7bbb
Parents: 832e8da
Author: Sergio Pena <se...@cloudera.com>
Authored: Sat Nov 18 08:16:22 2017 -0600
Committer: Sergio Pena <se...@cloudera.com>
Committed: Sat Nov 18 08:16:22 2017 -0600

----------------------------------------------------------------------
 pom.xml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sentry/blob/0b487f37/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 7476b4f..6487a26 100644
--- a/pom.xml
+++ b/pom.xml
@@ -52,6 +52,7 @@ limitations under the License.
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <buildtools.dir>${basedir}/build-tools</buildtools.dir>
+    <test.tmp.dir>${project.build.directory}/tmp</test.tmp.dir>
     <maven.compile.source>1.8</maven.compile.source>
     <maven.compile.target>1.8</maven.compile.target>
     <failIfNoTests>false</failIfNoTests>
@@ -706,6 +707,19 @@ limitations under the License.
               </target>
             </configuration>
           </execution>
+          <execution>
+            <id>setup-test-dirs</id>
+            <phase>process-test-resources</phase>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <configuration>
+              <target>
+                <delete dir="${test.tmp.dir}" />
+                <mkdir dir="${test.tmp.dir}" />
+              </target>
+            </configuration>
+          </execution>
         </executions>
       </plugin>
 
@@ -797,6 +811,7 @@ limitations under the License.
             <argLine>-Xms512m -Xmx2g -XX:MaxPermSize=256m</argLine>
             <systemPropertyVariables>
               <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
+              <java.io.tmpdir>${test.tmp.dir}</java.io.tmpdir>
             </systemPropertyVariables>
           </configuration>
         </plugin>