MINOR: allow retries for unitTest and integrationTest runs (#8323)

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 <ismael@juma.me.uk>
This commit is contained in:
Lucas Bradstreet 2020-03-21 09:09:29 -07:00 committed by GitHub
parent 635b5fd47c
commit c16938fd96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -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 {