[geode] branch develop updated: GEODE-5620: Adds project property to control test forking
This is an automated email from the ASF dual-hosted git repository. bschuchardt 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 0cbf8e5 GEODE-5620: Adds project property to control test forking 0cbf8e5 is described below commit 0cbf8e5e5221b9d397edbca26a03995c8ed20a68 Author: Bruce Schuchardt AuthorDate: Mon Aug 27 11:18:22 2018 -0700 GEODE-5620: Adds project property to control test forking Fixing testMaxParalleForks property handling. The code was using the character code for the number assigned to the property. It needed to parse the value to turn it into the requested number. --- gradle/test.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/test.gradle b/gradle/test.gradle index f3132e7..504719c 100644 --- a/gradle/test.gradle +++ b/gradle/test.gradle @@ -87,7 +87,7 @@ subprojects { TestPropertiesWriter.writeTestProperties(buildDir, name) } if (project.hasProperty('testMaxParallelForks')) { - maxParallelForks = project.testMaxParallelForks + maxParallelForks = Integer.parseUnsignedInt(project.testMaxParallelForks) } else { maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 }
[geode] branch develop updated: GEODE-5620: Adds project property to control test forking. (#2362)
This is an automated email from the ASF dual-hosted git repository. jbarrett 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 83ea1df GEODE-5620: Adds project property to control test forking. (#2362) 83ea1df is described below commit 83ea1df9079e672a024a195409d1f5b8efc5a197 Author: Jacob Barrett AuthorDate: Wed Aug 22 11:00:50 2018 -0700 GEODE-5620: Adds project property to control test forking. (#2362) --- gradle/test.gradle | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gradle/test.gradle b/gradle/test.gradle index 6f44764..f3132e7 100644 --- a/gradle/test.gradle +++ b/gradle/test.gradle @@ -86,7 +86,11 @@ subprojects { doFirst { TestPropertiesWriter.writeTestProperties(buildDir, name) } -maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 +if (project.hasProperty('testMaxParallelForks')) { + maxParallelForks = project.testMaxParallelForks +} else { + maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 +} } apply plugin: 'nebula.facet'