MINOR: allow retries for unitTest and integrationTest runs
We will currently retry if you run gradle test, but not unitTest or
integrationTest, which are used directly in Jenkins. This means that we
have not been achieving the expected retry behavior.
Reviewers: Ismael Juma
@@ -324,6 +324,10 @@ subprojects {
includeCategories 'org.apache.kafka.test.IntegrationTest'
}
+ retry {
+ maxRetries = userMaxTestRetries
+ maxFailures = userMaxTestRetryFailures
+ }
}
task unitTest(type: Test, dependsOn: compileJava) {
@@ -344,6 +348,11 @@ subprojects {
excludeCategories 'org.apache.kafka.test.IntegrationTest'
}
}
+
+ retry {
+ maxRetries = userMaxTestRetries
+ maxFailures = userMaxTestRetryFailures
+ }
}
jar {
