From f8329378af9ad05ea97e14c99158a9c1d6264281 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Mon, 31 Aug 2020 18:09:21 +0200 Subject: [PATCH] LUCENE-9492: Fix beasting to accept also task names in form ":project:beast"; fix bug with default value rejected by Integer.parseInt (#1808) --- gradle/testing/beasting.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle/testing/beasting.gradle b/gradle/testing/beasting.gradle index c4b5303df8c..8934100ec10 100644 --- a/gradle/testing/beasting.gradle +++ b/gradle/testing/beasting.gradle @@ -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.") }