Run the build integ test in parallel (#39788)

* Run the build integ test in parallel

Because the randomized runner lives in buildSrc, we run these tests with
the Gradle runner, and had no parallelism configured so far.

* Handle Windows and "auto" better
This commit is contained in:
Alpar Torok 2019-03-29 08:08:04 +02:00
parent 35d96c22c0
commit 49f18811c3
1 changed files with 5 additions and 0 deletions

View File

@ -232,6 +232,11 @@ if (project != rootProject) {
if (isLuceneSnapshot) { if (isLuceneSnapshot) {
systemProperty 'test.lucene-snapshot-revision', isLuceneSnapshot[0][1] systemProperty 'test.lucene-snapshot-revision', isLuceneSnapshot[0][1]
} }
String defaultParallel = System.getProperty('tests.jvms', project.rootProject.ext.defaultParallel)
if (defaultParallel == "auto") {
defaultParallel = Math.max(Runtime.getRuntime().availableProcessors(), 4)
}
maxParallelForks defaultParallel as Integer
} }
check.dependsOn(integTest) check.dependsOn(integTest)