From 74813360aba33cfef31060b04933f72f9d9e6f84 Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Wed, 29 May 2019 15:34:52 -0700 Subject: [PATCH] Fix inverted condition so we never cache rest integ tests --- .../org/elasticsearch/gradle/test/RestIntegTestTask.groovy | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/RestIntegTestTask.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/RestIntegTestTask.groovy index b4b363fc95d..48a900f4736 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/RestIntegTestTask.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/RestIntegTestTask.groovy @@ -26,6 +26,7 @@ import org.gradle.api.Task import org.gradle.api.execution.TaskExecutionAdapter import org.gradle.api.logging.Logger import org.gradle.api.logging.Logging +import org.gradle.api.specs.Specs import org.gradle.api.tasks.Copy import org.gradle.api.tasks.Input import org.gradle.api.tasks.TaskState @@ -79,10 +80,7 @@ class RestIntegTestTask extends DefaultTask { // disable the build cache for rest test tasks // there are a number of inputs we aren't properly tracking here so we'll just not cache these for now - runner.getOutputs().doNotCacheIf( - "Caching is disabled for REST integration tests", - { false } - ); + runner.getOutputs().doNotCacheIf("Caching is disabled for REST integration tests", Specs.SATISFIES_ALL) // override/add more for rest tests runner.maxParallelForks = 1