You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by pi...@apache.org on 2018/04/13 17:29:21 UTC
[geode] branch develop updated: GEODE-5035: Explicitly pass
java.io.tmpdir to JVMs invoked by Gradle. (#1779)
This is an automated email from the ASF dual-hosted git repository.
pivotalsarge pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new 130ed6e GEODE-5035: Explicitly pass java.io.tmpdir to JVMs invoked by Gradle. (#1779)
130ed6e is described below
commit 130ed6e36bdb91a68b97a95db3c811f0abaad72c
Author: Michael "Sarge" Dodge <md...@pivotal.io>
AuthorDate: Fri Apr 13 10:29:17 2018 -0700
GEODE-5035: Explicitly pass java.io.tmpdir to JVMs invoked by Gradle. (#1779)
- Exclude distributed tests from using java.io.tmpdir as they appear
to need /tmp.
---
gradle/test.gradle | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/gradle/test.gradle b/gradle/test.gradle
index 4c78af1..b574d4d 100644
--- a/gradle/test.gradle
+++ b/gradle/test.gradle
@@ -105,7 +105,7 @@ subprojects {
useJUnit {
includeCategories 'org.apache.geode.test.junit.categories.UnitTest'
}
-
+
doFirst {
TestPropertiesWriter.writeTestProperties(buildDir, name)
}
@@ -122,7 +122,7 @@ subprojects {
TestPropertiesWriter.writeTestProperties(buildDir, name)
}
}
-
+
task distributedTest(type:Test) {
useJUnit {
includeCategories 'org.apache.geode.test.junit.categories.DistributedTest'
@@ -130,12 +130,12 @@ subprojects {
}
forkEvery 1
}
-
+
task flakyTest(type:Test) {
useJUnit {
includeCategories 'org.apache.geode.test.junit.categories.FlakyTest'
}
-
+
forkEvery 1
doFirst {
TestPropertiesWriter.writeTestProperties(buildDir, name)
@@ -345,15 +345,15 @@ subprojects {
//force tests to be run every time by
//saying the results are never up to date
outputs.upToDateWhen { false }
-
+
def resultsDir = TestPropertiesWriter.testResultsDir(buildDir, test.name)
workingDir resultsDir.absolutePath
-
+
reports.html.destination = file "$buildDir/reports/$name"
testLogging {
exceptionFormat = 'full'
}
-
+
maxHeapSize '768m'
// jvmArgs = ['-XX:+HeapDumpOnOutOfMemoryError', '-ea',"-XX:+PrintGC", "-XX:+PrintGCDetails","-XX:+PrintGCTimeStamps"]
jvmArgs = ['-XX:+HeapDumpOnOutOfMemoryError', '-ea']
@@ -373,6 +373,12 @@ subprojects {
systemProperty 'log4j.configurationFile', log4jLocation
}
+ // The distributed tests seem to need to use /tmp directly,
+ // so exclude them from using the supplied temp directory.
+ if (! test.name.contains("distributed")) {
+ systemProperty 'java.io.tmpdir', System.getProperty('java.io.tmpdir')
+ }
+
def eol = System.getProperty('line.separator')
def progress = new File(resultsDir, "$test.name-progress.txt")
beforeTest { desc ->
--
To stop receiving notification emails like this one, please contact
pivotalsarge@apache.org.