mirror of https://github.com/apache/lucene.git
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:
parent
9445d2c10e
commit
f8329378af
|
@ -23,7 +23,7 @@
|
||||||
// runner duplicated suite names (much like https://github.com/gradle/test-retry-gradle-plugin)
|
// 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
|
// 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 {
|
allprojects {
|
||||||
plugins.withType(JavaPlugin) {
|
plugins.withType(JavaPlugin) {
|
||||||
|
@ -47,7 +47,7 @@ if (beastingMode) {
|
||||||
group "Verification"
|
group "Verification"
|
||||||
}
|
}
|
||||||
|
|
||||||
def dups = Integer.parseInt(resolvedTestOption("tests.dups"))
|
def dups = Integer.parseInt(resolvedTestOption("tests.dups") as String)
|
||||||
if (dups <= 0) {
|
if (dups <= 0) {
|
||||||
throw new GradleException("Specify -Ptests.dups=[count] for beast task.")
|
throw new GradleException("Specify -Ptests.dups=[count] for beast task.")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue