sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [5/9] sentry git commit: SENTRY-2054: Unit tests must create temporary files under the Maven target directory (Sergio Pena, reviewed by kalyan kumar kalvagadda)
Date Mon, 20 Nov 2017 14:47:26 GMT
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/akolb-cli
Commit: 0b487f3787286e334e8157e4dc31c0bba83b7bbb
Parents: 832e8da
Author: Sergio Pena <sergio.pena@cloudera.com>
Authored: Sat Nov 18 08:16:22 2017 -0600
Committer: Sergio Pena <sergio.pena@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>


Mime
View raw message