You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by jb...@apache.org on 2018/08/22 18:00:56 UTC

[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 <jb...@pivotal.io>
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'