You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by gr...@apache.org on 2018/07/24 21:37:15 UTC
kudu git commit: [gradle] Add rerunTests property
Repository: kudu
Updated Branches:
refs/heads/master 7fe04438e -> 141ee5a52
[gradle] Add rerunTests property
Gradle keeps track of changes and will skip tasks
that are up-to-date when possible. This is great
for incremental build speed, but can work against you
if you want to rerun tests multiple times.
Gradle does have a —rerun-tasks flag that will make
sure the tests are run. However, it will also rerun all
the tasks in the build tree.
This patch adds a rerunTests property that will
tell gradle the tests need to be rerun when passed.
Change-Id: I88eebdc34c5b9763b87879eade3dc9b42d3caf1c
Reviewed-on: http://gerrit.cloudera.org:8080/11035
Reviewed-by: Adar Dembo <ad...@cloudera.com>
Tested-by: Grant Henke <gr...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/141ee5a5
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/141ee5a5
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/141ee5a5
Branch: refs/heads/master
Commit: 141ee5a52f005033d957bd73973dce913be0504b
Parents: 7fe0443
Author: Grant Henke <gr...@apache.org>
Authored: Tue Jul 24 13:02:30 2018 -0500
Committer: Grant Henke <gr...@apache.org>
Committed: Tue Jul 24 21:36:57 2018 +0000
----------------------------------------------------------------------
java/gradle/tests.gradle | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kudu/blob/141ee5a5/java/gradle/tests.gradle
----------------------------------------------------------------------
diff --git a/java/gradle/tests.gradle b/java/gradle/tests.gradle
index c2df581..5cb49d8 100644
--- a/java/gradle/tests.gradle
+++ b/java/gradle/tests.gradle
@@ -66,6 +66,11 @@ tasks.withType(Test) {
filter {
failOnNoMatchingTests = false
}
+
+ // Force the tests to be rerun if the rerunTests property is set.
+ if (propertyExists("rerunTests")) {
+ outputs.upToDateWhen { false }
+ }
}
// Adds pattern based integration test support.