HBASE-25154 Set java.io.tmpdir to project build directory to avoid writing std*deferred files to /tmp (#2502)

Signed-off-by: stack <stack@apache.org>
Signed-off-by: Viraj Jasani <vjasani@apache.org>
Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
Duo Zhang 2020-10-06 08:35:16 +08:00
parent 1de1ec176f
commit 627b3e6126
1 changed files with 2 additions and 0 deletions

View File

@ -593,6 +593,7 @@
<redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile> <redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
<systemPropertyVariables> <systemPropertyVariables>
<test.build.classes>${test.build.classes}</test.build.classes> <test.build.classes>${test.build.classes}</test.build.classes>
<java.io.tmpdir>${test.tmp.dir}</java.io.tmpdir>
</systemPropertyVariables> </systemPropertyVariables>
<excludes> <excludes>
<!-- users can add -D option to skip particular test classes <!-- users can add -D option to skip particular test classes
@ -1549,6 +1550,7 @@
<restrict-imports.enforcer.version>0.14.0</restrict-imports.enforcer.version> <restrict-imports.enforcer.version>0.14.0</restrict-imports.enforcer.version>
<!-- Location of test resources --> <!-- Location of test resources -->
<test.build.classes>${project.build.directory}/test-classes</test.build.classes> <test.build.classes>${project.build.directory}/test-classes</test.build.classes>
<test.tmp.dir>${project.build.directory}</test.tmp.dir>
<maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss'Z'</maven.build.timestamp.format> <maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss'Z'</maven.build.timestamp.format>
<!--This build.id we'll add as flag so can identify which forked processes belong to our build. <!--This build.id we'll add as flag so can identify which forked processes belong to our build.
Default is the build start timestamp. Up on jenkins pass in the jenkins build id by setting Default is the build start timestamp. Up on jenkins pass in the jenkins build id by setting