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

[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 <bs...@pivotal.io>
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
     }