Pass tests.jvms system property to test tasks for maxParallelForks (#44237)
This commit is contained in:
parent
7a82106de6
commit
5698f4dc27
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue