Skip to content

Commit

Permalink
GEODE-5620: Adds project property to control test forking
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bschuchardt committed Aug 27, 2018
1 parent 45138b4 commit 0cbf8e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/test.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0cbf8e5

Please sign in to comment.