Skip to content

Commit 0bff89d

Browse files
committed
Disabled caching for all test tasks, ecept for :test, as they have utputs.upToDateWhen { false } configured, which effectively disabled caching anyway
1 parent 38f64a7 commit 0bff89d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

build-tools/scripts/src/main/groovy/geode-test.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,14 @@ configure([integrationTest, distributedTest, performanceTest, acceptanceTest, ui
9191
TestPropertiesWriter.writeTestProperties(buildDir, name)
9292
}
9393
outputs.upToDateWhen { false }
94+
outputs.doNotCacheIf("Forced rerun") { true }
9495
}
9596

9697
if (project.hasProperty("forceTest")) {
9798
// All test facets already force rerun. Only :test can be upToDate.
9899
test {
99100
outputs.upToDateWhen { false }
101+
outputs.doNotCacheIf("Forced rerun") { true }
100102
}
101103
}
102104

@@ -148,6 +150,7 @@ configure([repeatDistributedTest, repeatIntegrationTest, repeatUpgradeTest, repe
148150
testFramework.options.excludeTags += "org.apache.geode.test.junit.categories.IgnoreInRepeatTestTasks"
149151

150152
outputs.upToDateWhen { false }
153+
outputs.doNotCacheIf("Forced rerun") { true }
151154

152155
if (project.hasProperty("failOnNoMatchingTests")) {
153156
filter {

0 commit comments

Comments
 (0)