Fix inverted condition so we never cache rest integ tests

This commit is contained in:
Mark Vieira 2019-05-29 15:34:52 -07:00 committed by Alpar Torok
parent 3204e0255c
commit 74813360ab
1 changed files with 2 additions and 4 deletions

View File

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