MINOR: fix rerun-tests for unit test (#13288)

Related to #11926. Let `unitTest` also process rerun-tests.

Reviewers: Guozhang Wang <wangguoz@gmail.com>
This commit is contained in:
Chia-Ping Tsai 2023-03-02 08:38:12 +08:00 committed by GitHub
parent d479d129e0
commit 3d9a03cfe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -535,6 +535,11 @@ subprojects {
maxRetries = userMaxTestRetries maxRetries = userMaxTestRetries
maxFailures = userMaxTestRetryFailures maxFailures = userMaxTestRetryFailures
} }
// Allows devs to run tests in a loop to debug flaky tests. See README.
if (project.hasProperty("rerun-tests")) {
outputs.upToDateWhen { false }
}
} }
// remove test output from all test types // remove test output from all test types