LUCENE-9492: Fix beasting to accept also task names in form ":project:beast"; fix bug with default value rejected by Integer.parseInt (#1808)

This commit is contained in:
Uwe Schindler 2020-08-31 18:09:21 +02:00 committed by GitHub
parent 9445d2c10e
commit f8329378af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@
// runner duplicated suite names (much like https://github.com/gradle/test-retry-gradle-plugin)
// TODO: this is a somewhat related issue: https://github.com/gradle/test-retry-gradle-plugin/issues/29
def beastingMode = gradle.startParameter.taskNames.contains("beast");
def beastingMode = gradle.startParameter.taskNames.any{ name -> name == 'beast' || name.endsWith(':beast') }
allprojects {
plugins.withType(JavaPlugin) {
@ -47,7 +47,7 @@ if (beastingMode) {
group "Verification"
}
def dups = Integer.parseInt(resolvedTestOption("tests.dups"))
def dups = Integer.parseInt(resolvedTestOption("tests.dups") as String)
if (dups <= 0) {
throw new GradleException("Specify -Ptests.dups=[count] for beast task.")
}