From 84bf98e9cd982c48b0e658395fb3cac56f274a31 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Tue, 13 Aug 2019 22:50:35 -0700 Subject: [PATCH] Fix bats distro test to build distributions (#45529) The dependency on copying distributions was accidentally masked by an earlier refactoring. This commit fixes the copyDistributions task to be run before bats tests run. --- .../groovy/org/elasticsearch/gradle/test/DistroTestPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/DistroTestPlugin.java b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/DistroTestPlugin.java index eecda16e1e9..f9552c0c51d 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/DistroTestPlugin.java +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/DistroTestPlugin.java @@ -285,7 +285,7 @@ public class DistroTestPlugin implements Plugin { } private static TaskProvider configureBatsTest(Project project, String type, Provider distributionsDir, - TaskProvider copyPackagingArchives, Object... deps) { + Object... deps) { return project.getTasks().register("destructiveBatsTest." + type, BatsTestTask.class, t -> { Directory batsDir = project.getLayout().getProjectDirectory().dir("bats");