Pass tests.jvms system property to test tasks for maxParallelForks (#44237)

This commit is contained in:
Mark Vieira 2019-07-11 12:37:31 -07:00
parent 7a82106de6
commit 5698f4dc27
No known key found for this signature in database
GPG Key ID: CA947EF7E6D4B105
1 changed files with 1 additions and 1 deletions

View File

@ -840,7 +840,7 @@ class BuildPlugin implements Plugin<Project> {
test.executable = "${ext.get('runtimeJavaHome')}/bin/java"
test.workingDir = project.file("${project.buildDir}/testrun/${test.name}")
test.maxParallelForks = project.rootProject.extensions.getByType(ExtraPropertiesExtension).get('defaultParallel') as Integer
test.maxParallelForks = System.getProperty('tests.jvms', project.rootProject.extensions.extraProperties.get('defaultParallel').toString()) as Integer
test.exclude '**/*$*.class'